cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing table in Unity Catalog

phanisaisrir
New Contributor

What is the preferred way of accessing a UC enabled SqlWarehouse table from Databricks Spark Cluster . 

My requirement is to fetch the data from a sqlwarehouse table using complex queries, transform it using Pyspark notebook and save the results.

But to fetch data from UC Enabled Sql warehouse, we can use jdbc connection or we can directly access it using spark.sql().

Which one is suggested in this scenario? Also, note that  I need to schedule this notebook for every 30 mins.

Note : Both the Spark cluster and Sql ware house are UC enabled

1 REPLY 1

filipniziol
Esteemed Contributor

Hi @phanisaisrir ,
Use spark sql. This is the native and most integrated way to interact with data within Databricks.