cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks unmanaged table from Snowflake

155647
New Contributor II

Is there a way to create Databricks unmanaged table that's actually Snowflake table, not some S3 or DBFS location?

From documentation is rather vague is this possible: "You can create an unmanaged table with your data in data sources such as Cassandra, JDBC table, and so on. See Data sources for more information about the data sources supported by Databricks. Some common ways of creating an unmanaged table are:"

I have data stored both on S3 and Snowflake and want to be able to query both locations with Databricks. The challenge with Snowflake table is that you have to import secrets, create options, and load data into dataframe. A better solution would be to do that only once and then just access the table as databricks unmanaged table.

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

@Stefan Stojanovicโ€‹, It is a lot of hassle. Still, you can create your metastore as described by snowflake (it will handle Databricks tables without problems as well):

https://docs.snowflake.com/en/user-guide/tables-external-hive.html

and add it to Databricks as external hive meta stores

https://docs.databricks.com/data/metastores/external-hive-metastore.html

A more simple way would be (but when I checked it with some other database, it was not working)

take that jar from snowflake and try to register as an external table with JDBC string. Here is an example with Postgres https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html

Anonymous
Not applicable

Hi @Stefan Stojanovicโ€‹ following up did you get a chance to check @Hubert Dudekโ€‹ previous comments ?

Anonymous
Not applicable

Hey @Stefan Stojanovicโ€‹ 

Hope everything is going great!

Does @Hubert Dudekโ€‹'s response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group