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

Delta Live tables publish to Unity Catalog

Phani1
Valued Contributor

How to enable DLT pipelines for the tables which are in UC. Could you please suggest us the approach or if there is any workaround?

2 REPLIES 2

Anonymous
Not applicable

@Janga Reddy​ :

To enable Delta Live Tables (DLT) pipelines for tables that are in Unity Catalog (UC), you can follow these general steps:

  1. Create a new Databricks cluster or use an existing one.
  2. Connect to UC using the Unity Catalog API. You can use the spark.conf.set() method to set the UC configuration parameters. For example:
spark.conf.set("spark.databricks.delta.preview.enabled", "true")
spark.conf.set("spark.databricks.delta.properties.defaults.catalog.spark_catalog", "com.databricks.spark.catalog.UnityCatalog")
spark.conf.set("spark.hadoop.fs.unity.impl", "com.databricks.backend.daemon.dbutils.UnityFileSystem")
spark.conf.set("spark.databricks.clusterUsageTags.clusterName", "<cluster_name>")

3) Create a Delta table using the spark.read method with the UnifiedAnalyticsDataSource data source and the table location in UC. For example:

df = spark.read.format("com.databricks.spark.sqldw").option("url", "<jdbc_url>").option("query", "<query>").load()
df.write.format("delta").option("path", "unity://<catalog>.<namespace>/<table_name>").save()

Note that you need to replace <cluster_name>, <jdbc_url>, <query>, <catalog>, <namespace>, and

<table_name> with the appropriate values for your UC and Databricks environment.

Also, please note that Unity Catalog is a proprietary Databricks feature, and it is not available in open source Apache Spark. If you are not using Databricks Unified Analytics Platform, you may not be able to use Unity Catalog.

Anonymous
Not applicable

Hi @Janga Reddy​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

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.