Skip to content

Conversation

@MikeNitsenko
Copy link
Contributor

@MikeNitsenko MikeNitsenko commented Sep 25, 2023

We can not connect to Databricks by using the JDBC URL they provide.
To fix this, users have to add UID=token.
This happens because the driver is trying to use a user/password mechanism to authenticate instead of a token in the URL because we're explicitly passing the params to getConnection() (PWD).
https://github.com/cube-js/cube/blob/master/packages/cubejs-jdbc-driver/src/JDBCDriver.ts#L140

@vercel
Copy link

vercel bot commented Sep 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 3:37pm

@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label Sep 25, 2023
@MikeNitsenko MikeNitsenko force-pushed the CC-3101-fix-databricks-jdbc-url-issue branch from f2aa0fa to 451b6ce Compare September 27, 2023 14:15
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5e68c7c) 47.04% compared to head (0c4c94e) 47.04%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7168   +/-   ##
=======================================
  Coverage   47.04%   47.04%           
=======================================
  Files         155      155           
  Lines       20749    20749           
  Branches     5216     5216           
=======================================
  Hits         9761     9761           
+ Misses      10671    10669    -2     
- Partials      317      319    +2     
Flag Coverage Δ
cube-backend 47.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MikeNitsenko MikeNitsenko changed the title fix(databricks-jdbc-driver): add missing default UID property fix(databricks-jdbc-driver): ensure default UID property is set Sep 27, 2023
@MikeNitsenko MikeNitsenko marked this pull request as ready for review September 27, 2023 19:06
@MikeNitsenko MikeNitsenko requested a review from a team as a code owner September 27, 2023 19:06
@MikeNitsenko MikeNitsenko force-pushed the CC-3101-fix-databricks-jdbc-url-issue branch from d1a31b8 to 8cb565e Compare September 28, 2023 03:13
@MikeNitsenko MikeNitsenko requested a review from a team as a code owner September 28, 2023 03:13
@MikeNitsenko MikeNitsenko removed the request for review from a team September 28, 2023 04:41
@MikeNitsenko MikeNitsenko marked this pull request as draft September 28, 2023 14:37
@MikeNitsenko MikeNitsenko marked this pull request as ready for review September 28, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants