Adrien Besnard
05/24/2024, 2:40 PMdbt run --select 'elementary' because the underlying catalog (ie. database in the DBT world) I'm using doesn't support view creation. Is there a workaround for this?Adrien Besnard
05/24/2024, 2:41 PM14:38:41 Finished running 15 incremental models, 1 table model, 12 view models, 2 hooks in 0 hours 1 minutes and 27.49 seconds (87.49s).
14:38:41
14:38:41 Completed with 14 errors and 0 warnings:
14:38:41
14:38:41 Database Error in model data_monitoring_metrics (models/edr/data_monitoring/data_monitoring/data_monitoring_metrics.sql)
TrinoUserError(type=USER_ERROR, name=NOT_SUPPORTED, message="This connector does not support creating views", query_id=20240524_143722_03593_ggbwc)Adrien Besnard
05/24/2024, 2:41 PMTomme
05/24/2024, 3:31 PMdbt-trino x Elementary was only tested and built on connectors that support the typical merge incremental materialization within dbt-trino.
However, you can disable the use of views with merge within dbt-trino by using +views_enabled: false within your dbt_project.yml - likely under the elementary model configuration - ⚠️ I have not tried this before and may cause unexpected behaviour!
Out of interest this is the Elementary related configuration I have been using:
...
models:
...
elementary:
+on_table_exists: drop
+database: REDACTED
+schema: elementary
# +views_enabled: false # try this at your own risk
vars:
upload_artifacts_method: replaceTomme
05/24/2024, 3:33 PMelementary at that "database" for Elementary specific things.Adrien Besnard
05/24/2024, 3:35 PM+on_table_exists and +View_enabled , thanks a lot!Adrien Besnard
05/24/2024, 3:36 PMTomme
05/28/2024, 9:25 AM