Skip to content

Commit 670cf90

Browse files
committed
add comment
1 parent e0b5229 commit 670cf90

File tree

1 file changed

+3
-1
lines changed
  • packages/cubejs-databricks-jdbc-driver/src

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export async function resolveJDBCDriver(): Promise<string> {
3333
}
3434

3535
/**
36-
* Extract if exist UID and PWD from URL and return UID, PWD and URL without these params
36+
* Extract if exist UID and PWD from URL and return UID, PWD and URL without these params.
37+
* New Databricks OSS driver throws an error if UID and PWD are provided in the URL and as a separate params
38+
* passed to the driver instance. That's why we strip them out from the URL if they exist there.
3739
* @param jdbcUrl
3840
*/
3941
export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string, pwd: string, cleanedUrl: string] {

0 commit comments

Comments
 (0)