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.

2 REPLIES 2

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.

 

 

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