cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting database/catalog section of databricks jdbc driver url does not make it default

jneira
New Contributor III

Hi, first of all thanks for the jdbc driver software.

I have been used it with almost no problems but today i tried to set a a a database by default other than hive_metastore.

I have followed the instructions and the example from the pdf jdbc driver guide:

jdbc:

databricks

://localhost:11000/default2;AuthMech=3;UID=

databricks;PWD=databricks

But the queries over schemas and tables from the database default2 fails cause it does not find them.

In fact you can set a non existing database and the driver does not complain.

am i using it wrong? is there another way to set the default database?

Thanks in advance!

1 REPLY 1

sanjevraj
New Contributor III

For anyone looking for an answer I had to add ConnCatalog=<catalog-name> in the URL.

It is in the documentation https://docs.databricks.com/integrations/jdbc-odbc-bi.html#databricks-jdbc under JDBC driver capabilities.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.