09-27-2024 09:25 AM
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 pipelineI 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.
02-01-2025 03:39 AM
'Direct Publishing Mode' Public Preview is now live on all production regions. Start exploring today and share your valuable feedback with us.
09-29-2024 11:41 AM
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
05-08-2025 12:30 PM - edited 05-08-2025 12:31 PM
when i try creating streaming table as below
dlt.create_streaming_table("dtlk_dev.transform_schme.invoices"), it throws error stating to remove the database qualifier name and try again
09-30-2024 06:19 AM - edited 09-30-2024 06:20 AM
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.
02-01-2025 03:39 AM
02-04-2025 11:06 AM
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
02-04-2025 01:33 PM
@Dorsey Make sure to enable DPM from the Preview page. Can you confirm the region of your workspace?
03-05-2025 05:39 AM
how can i enable it ? it is require workspace admin role ?
also why i can't find any documentation for this new feature ?
02-04-2025 01:39 PM
I'm in EastUS and i don't have that option on my previews page. Also it only works with serverless?
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now