duckdb / dbt-duckdb

dbt (http://getdbt.com) adapter for DuckDB (http://duckdb.org)
Apache License 2.0
788 stars 70 forks source link

Specify format for external models globally #387

Closed sergun closed 2 months ago

sergun commented 2 months ago

How to specify globally in yml configs (not in *.sql files) format (e.g. format="json") to be used for external models ?

jwills commented 2 months ago

Does this not work? https://docs.getdbt.com/reference/model-configs

sergun commented 2 months ago

@jwills Thanks! Yes, it does.

Sorry, it was my mistake. Configurations like:

models:
  hc:
    +materialized: external
    format: json

in dbt_project.yml work perfectly.