-
Notifications
You must be signed in to change notification settings - Fork 154
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
Use tmp table in static insert overwrite #630
Use tmp table in static insert overwrite #630
Conversation
59cf7e6
to
9a9eada
Compare
Lining this up for 1.6.0, sadly I don't think we'll have time to review it before 1.5.0 ships. |
@@ -1,5 +1,5 @@ | |||
{% macro bq_generate_incremental_insert_overwrite_build_sql( | |||
tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change, copy_partitions | |||
tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions |
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.
70a695c
to
7c21644
Compare
bfcc4e5
to
f8993ae
Compare
I think it should work as intended, should we move forward on that one for 1.6 release? |
I'm raising priority on our side, but there is still a ton of other tickets to review higher on the list :/ |
@Kayrnt We just merged in a bunch of smaller dependabot type changes. Now that that's all done, do you mind updating your branch? |
f8993ae
to
aa0c030
Compare
I just rebased, let's see if it passes the tests |
aa0c030
to
98b0464
Compare
Local testing successful and it looks like we're now using the temp table as expected. |
Last request: can we add a test fixture that covers this to test_incremental_strategies.py Suggested fixture:
|
d2f2f3c
to
025a08f
Compare
@colin-rogers-dbt I added the test case, we should be fine 🚀 |
@github-christophe-oudar Could you bring it up-to-date with the base branch? We might need to keep asking you to do an update like that until this PR is merged 😅 Alternatively, if you allow edits from maintainers (recommended!), then we can handle that type of thing as-needed. |
025a08f
to
7d8df06
Compare
You're merging too many things 😅 |
if we can do one more update I can merge this |
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @github-christophe-oudar |
Done 👍 |
@cla-bot check |
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @github-christophe-oudar |
The cla-bot has been summoned, and re-checked this pull request! |
Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
6f3370b
to
124023f
Compare
@McKnight-42 @colin-rogers-dbt I rebased with my "cla:yes" account (my personal one) so that it should be OK. |
Resolves #427
Resolves #556
Description
As described in #427, static insert overwrite, when involving
on_schema_change != 'ignore'
would create a temp table to check for a schema change anyway.It fixes as well:
on_schema_change = 'ignore'
with dynamic insert overwrite where the SQL header would not be addedon_schema_change != 'ignore'
where the temp table would not be deletedChecklist
changie new
to create a changelog entry