Accessing table in Unity Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 09:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 11:36 PM
Hi @phanisaisrir ,
Use spark sql. This is the native and most integrated way to interact with data within Databricks.

