-
Notifications
You must be signed in to change notification settings - Fork 119
Remove transaction for bigquery in delete_and_insert macro #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Remove transaction for bigquery in delete_and_insert macro #771
Conversation
WalkthroughA new BigQuery-specific macro has been added to construct and return delete and insert queries with conditional logic. The macro accepts parameters for the target relation, insert relation, delete relation, and delete column key, accumulating the appropriate queries based on which relations are provided. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| {% do return(queries) %} | ||
| {% endmacro %} | ||
|
|
||
| {% macro bigquery__get_delete_and_insert_queries(relation, insert_relation, delete_relation, delete_column_key) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While your implementation is valid, your end goal of running 2 dbt runs in parallel won't be resolved by this.
Commented on the issue.
Solves elementary-data/elementary#1766
Summary by CodeRabbit