- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 04:59 AM
Hi everyone,
I am building a dlt Pipeline and there I am using the Direct Publish feature which is as of now still under Private Preview.
While it works well to create streaming tables and write them to another schema than the dlt default schema, I get the following error message, when I try to create a View and write it to a different schema than the default schema:
AnalysisException: View with multipart name 'gold.fact_customer' is not supported.
I used the following code to create the View:
Any help would be much appreciated.
Thank you 🙂
Susanne
- Labels:
-
Delta Lake
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 11:59 PM
Hi @susanne ,
Use Tables Instead of Views: If possible, convert your views to tables.
@dlt.table(
name=target_table,
)
def get_gold_table():
df = spark.sql(f"""{gold_selection}""")
return df
Direct Publish Feature: The Direct Publish feature does not support publishing views to another schema. It is intended for tables and materialized views, which can be published to the catalog.
Solution: To publish data to a different schema, consider using a table or materialized view instead of a view, as these can be written to the catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 11:59 PM
Hi @susanne ,
Use Tables Instead of Views: If possible, convert your views to tables.
@dlt.table(
name=target_table,
)
def get_gold_table():
df = spark.sql(f"""{gold_selection}""")
return df
Direct Publish Feature: The Direct Publish feature does not support publishing views to another schema. It is intended for tables and materialized views, which can be published to the catalog.
Solution: To publish data to a different schema, consider using a table or materialized view instead of a view, as these can be written to the catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 01:13 AM
Hi Sidhan,
thanks a lot for your reply, it works very well to write materialized views to a different schema than the default schema.
Thanks for your guidance!
Best regards
Susanne

