File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/cubejs-databricks-jdbc-driver/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string
4343 const uidMatch = jdbcUrl . match ( / U I D = ( [ ^ ; ] * ) / i) ;
4444 const pwdMatch = jdbcUrl . match ( / P W D = ( [ ^ ; ] * ) / i) ;
4545
46- const uid = uidMatch ?. [ 1 ] || '' ;
46+ const uid = uidMatch ?. [ 1 ] || 'token ' ;
4747 const pwd = pwdMatch ?. [ 1 ] || '' ;
4848
4949 const cleanedUrl = jdbcUrl
You can’t perform that action at this time.
0 commit comments