Skip to content

Commit 3d51910

Browse files
committed
Attempt to get prev ver run
1 parent 1a67d2d commit 3d51910

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ export class DatabricksDriver extends JDBCDriver {
255255
drivername: 'com.databricks.client.jdbc.Driver',
256256
customClassPath: undefined,
257257
properties: {
258-
...authProps,
258+
UID: uid,
259+
PWD:
260+
conf?.token ||
261+
getEnv('databricksToken', { dataSource }) ||
262+
pwd,
259263
UserAgentEntry: 'CubeDev_Cube',
260264
},
261265
catalog:

packages/cubejs-databricks-jdbc-driver/src/helpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string
4848

4949
const cleanedUrl = jdbcUrl
5050
.replace(/;?UID=[^;]*/i, '')
51-
.replace(/;?PWD=[^;]*/i, '')
52-
.replace(/;?AuthMech=[^;]*/i, '');
51+
.replace(/;?PWD=[^;]*/i, '');
5352

5453
return [uid, pwd, cleanedUrl];
5554
}

0 commit comments

Comments
 (0)