File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/cubejs-databricks-jdbc-driver/src Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string
4848
4949 const cleanedUrl = jdbcUrl
5050 . replace ( / ; ? U I D = [ ^ ; ] * / i, '' )
51- . replace ( / ; ? P W D = [ ^ ; ] * / i, '' )
52- . replace ( / ; ? A u t h M e c h = [ ^ ; ] * / i, '' ) ;
51+ . replace ( / ; ? P W D = [ ^ ; ] * / i, '' ) ;
5352
5453 return [ uid , pwd , cleanedUrl ] ;
5554}
You can’t perform that action at this time.
0 commit comments