Skip to content

Commit 1a67d2d

Browse files
committed
fix
1 parent c4f1ddd commit 1a67d2d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ export class DatabricksDriver extends JDBCDriver {
228228
throw new Error('No credentials provided');
229229
}
230230

231-
const user = uid || 'token';
232-
233231
let authProps: Record<string, any> = {};
234232

235233
// OAuth has an advantage over UID+PWD
@@ -244,7 +242,7 @@ export class DatabricksDriver extends JDBCDriver {
244242
};
245243
} else {
246244
authProps = {
247-
user,
245+
UID: uid,
248246
PWD: passwd,
249247
AuthMech: 3,
250248
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string
4343
const uidMatch = jdbcUrl.match(/UID=([^;]*)/i);
4444
const pwdMatch = jdbcUrl.match(/PWD=([^;]*)/i);
4545

46-
const uid = uidMatch?.[1] || '';
46+
const uid = uidMatch?.[1] || 'token';
4747
const pwd = pwdMatch?.[1] || '';
4848

4949
const cleanedUrl = jdbcUrl

0 commit comments

Comments
 (0)