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
Here, the model is correctly built as a table. A more realistic use case might involve a macro that itself calls config() with some default arguments. Subsequent calls to config() may override some of this behavior. Eg:
While the paradigm works for dbt's clobber configs, it does not currently work for the append- and extend- configs (like post-hooks and vars, for instance).
Append configs
Given:
{{ config({"post-hook": 'select 1 as id'}) }}
{{ config({"post-hook": 'select 2 as id'}) }}
Expected:
post-hooks == ["select 1 as id", "select 2 as id"]
Issue
dbt's clobber configuration fields (eg.
materialized',
bind', etc) can be currently be specified in multipleconfig()
blocks. This looks like:Here, the model is correctly built as a table. A more realistic use case might involve a macro that itself calls
config()
with some default arguments. Subsequent calls toconfig()
may override some of this behavior. Eg:While the paradigm works for dbt's clobber configs, it does not currently work for the append- and extend- configs (like
post-hooks
andvars
, for instance).Append configs
Given:
Expected:
Extend configs
Given:
Expected:
Todo:
The text was updated successfully, but these errors were encountered: