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: 

DLT Direct Publishing Mode

804082
New Contributor III

Hello,

I'm working on a DLT pipeline and have a block of SQL that runs...

USE CATALOG catalog_a;
USE SCHEMA schema_a;
CREATE OR REFRESH MATERIALIZED VIEW table_a AS
SELECT ... FROM catalog_b.schema_b.table_b;

Executing this block returns the following...

com.databricks.pipelines.common.errors.DLTSparkException: [UNSUPPORTED_COMMAND_IN_NON_DPM_PIPELINE] USE CATALOG only supported in direct publishing mode enabled DLT pipeline

I can't find any documentation or mention of this error, or anything about enabling "direct publishing mode". Any idea as to how to do that? Or is there another recommended/possible way to create a materialized view using data from another catalog?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

kuldeep-in
Databricks Employee
Databricks Employee

'Direct Publishing Mode' Public Preview is now live on all production regions. Start exploring today and share your valuable feedback with us.

cc: @804082 @gchandra 

View solution in original post

7 REPLIES 7

gchandra
Databricks Employee
Databricks Employee

Direct Publishing Mode is a Private Preview feature. 

Till it becomes Public Preview or GA, please remove the USE Catalog and Use Schema and try catalog.schema.view  



~

804082
New Contributor III

Ah, thank you! I couldn't find anything about Direct Publishing Mode through my Google search (in fact, if you search it now, this post is the top result).

I believe I'll be waiting until it goes into public preview/GA. Removing USE CATALOG and USE SCHEMA, and instead using catalog.schema.view, returns...

 

org.apache.spark.sql.catalyst.ExtendedAnalysisException: Unsupported SQL statement for table 'catalog.schema.view': Multipart table names is not supported.

 

 

kuldeep-in
Databricks Employee
Databricks Employee

'Direct Publishing Mode' Public Preview is now live on all production regions. Start exploring today and share your valuable feedback with us.

cc: @804082 @gchandra 

Dorsey
New Contributor II

I'm still running into issues like the op, getting the same error and have confirmed Direct Publishing Mode is set to True in the pipeline definition

kuldeep-in
Databricks Employee
Databricks Employee

@Dorsey Make sure to enable DPM from the Preview page. Can you confirm the region of your workspace?

DPM Preview.pngDTL -DPM.png

how can i enable it ? it is require  workspace admin role ?
also why i can't find any documentation for this new feature ?

Dorsey
New Contributor II

I'm in EastUS and i don't have that option on my previews page. Also it only works with serverless?

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