cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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
New Contributor II

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

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