You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
07:58:55 Completed with 1 error and 0 warnings:
07:58:55
07:58:55 Runtime Error in model (models/./././.py)
07:58:55 Materialization "materialization_table_trino" only supports languages ['sql']; got "python"
github-actionsbot
changed the title
[Bug] Materialization "materialization_table_trino" only supports languages ['sql']; got "python" in dbt-core 1.3.0 and 1.3.1
[CT-1711] [Bug] Materialization "materialization_table_trino" only supports languages ['sql']; got "python" in dbt-core 1.3.0 and 1.3.1
Dec 22, 2022
In their initial launch, Python models are supported on three of the most popular data platforms: Snowflake, Databricks, and BigQuery/GCP (via Dataproc) [1]
I think the reason you are getting this error is that dbt-trino doesn't currently support dbt Python models.
Although we can't help you directly, here's a couple options for you:
Is this a new bug in dbt-core?
Current Behavior
def model(dbt,session):
df = dbt.ref('')
return df
07:58:55 Completed with 1 error and 0 warnings:
07:58:55
07:58:55 Runtime Error in model (models/./././.py)
07:58:55 Materialization "materialization_table_trino" only supports languages ['sql']; got "python"
Expected Behavior
def model(dbt,session):
df = dbt.ref('<view_model>')
return df
Should be able to create python model referencing the view model.
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
Trino
The text was updated successfully, but these errors were encountered: