Views in DLT with Private Preview feature Direct Publish

susanne
Databricks Partner

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:

@dlt.table(
name = target_table,
)
def get_gold_table():
df = spark.sql(f"""{gold_selection}""")
return df
Does Direct Publish in general not support publishing of views to another schema?
Any help would be much appreciated.
Thank you 🙂
Susanne