Closed wil-teampeanut closed 1 year ago
As it is a macro provided by AutomateDV, You need to prefix it as follows: automate_dv.is_vault_insert_by_period()
please try this and let us know if the issue persists!
Yep, sorry, I just recognised what was going on and was about to close the comment. Thanks for getting back to me quickly!
Describe the bug I am trying to use the is_vault_insert_by_period() macro in the same way I would the DBT is_incremental() macro in a script, but the following error is raised:
20:55:57 'is_vault_insert_by_period' is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with "dbt deps".
Environment
dbt version: 1.5.2 automate_dv version: 0.9.6 Database/Platform: Snowflake
To Reproduce Steps to reproduce the behavior: I have added this code snippet beneath a config file
Expected behavior I would expect the delete statement to be called if the table already existed.