{% macro ref(model_name) %}
{% set rel = builtins.ref(model_name) %}
{% set newrel = rel %}
{% do return(newrel) %}
{% endmacro %}
3. Try a vacuum by copying the above `dbt run-operation redshift_maintenance --args ...` example.
## Checklist
- [x] I have verified that these changes work locally
- [ ] I have updated the README.md (if applicable)
- [ ] I have added tests & descriptions to my models (and macros if applicable)
Description & motivation
See issue #52 for background.
I tested both mechanism of running
redshift_maintenance
:vacuum_tables_sql()
macro:exclude_schemas
andexclude_schemas_like
args:For dbt Labs reviewer:
Put this in your
packages.yml
and thendbt deps
:Add
ref()
macro override doing nothing:{% endmacro %}