SQL compilation error when running --empty
flag on on model that utilizes dbt_utils.union_relations()
macro
#807
Labels
bug
Something isn't working
Describe the bug
I got an error when trying to use the
--empty
flag with a model that uses thedbt_utils.union_relations
macro.Workaround
Doing this update seemed to resolve the issue for me (just changing
relation|lower
to berelation.render()|lower
):Steps To Reproduce
Create these files:
models/my_model.sql
models/my_model_unioned.sql
Run these commands:
Expected behavior
Screenshots and log output
Actual log output:
System information
The output of
dbt --version
:The operating system you're using: N/A
The output of
python --version
: N/AAdditional context
See dbt-labs/dbt-core#10766 (comment) for background.
The text was updated successfully, but these errors were encountered: