Skip to content
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

Fix comma if only removing columns in on_schema_change: sync_all_columns #4148

Merged
merged 2 commits into from
Oct 28, 2021

Conversation

jtcohen6
Copy link
Contributor

@jtcohen6 jtcohen6 commented Oct 27, 2021

resolves #4147

  • This is a quick one, and related to behavior new in v0.21 (on_schema_change config for incremental models)
  • I also refactored (removed some copy-paste cruft) from the integration test for on_schema_change, following the logic I implemented in Add support for on_schema_change dbt-spark#229

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@jtcohen6 jtcohen6 requested a review from leahwicz October 27, 2021 19:19
@cla-bot cla-bot bot added the cla:yes label Oct 27, 2021
Copy link

@github-christophe-oudar github-christophe-oudar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

Comment on lines +13 to +14
select id
,cast(field1 as {{string_type}}) as field1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking on formatting to align with other selects

Suggested change
select id
,cast(field1 as {{string_type}}) as field1
select id,
cast(field1 as {{string_type}}) as field1

@jtcohen6 jtcohen6 merged commit 178f74b into main Oct 28, 2021
@jtcohen6 jtcohen6 deleted the fix/on-schema-change-sync-remove-only branch October 28, 2021 08:19
jtcohen6 added a commit that referenced this pull request Oct 28, 2021
…umns` (#4148)

* Fix comma if only removing in on_schema_change: sync

* Add changelog entry
jtcohen6 added a commit that referenced this pull request Oct 28, 2021
jtcohen6 added a commit that referenced this pull request Oct 28, 2021
* Fix comma if only removing columns in `on_schema_change: sync_all_columns` (#4148)

* Fix comma if only removing in on_schema_change: sync

* Add changelog entry

* Fixup for BQ
jtcohen6 added a commit that referenced this pull request Nov 7, 2021
jtcohen6 added a commit that referenced this pull request Nov 8, 2021
* Add integration tests

* Reorganize + dispatch more global macros

* Reorg materializations subdir

* Move around + document generic tests

* Fix failing tests

* Fix merge conflict

* Grab fix from #4148

* PR feedback

* Fixup

* Add load_relation back, it was nice

* Last few test fixes

* Rm incremental_upsert, now unused

* Add changelog entry
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* Add integration tests

* Reorganize + dispatch more global macros

* Reorg materializations subdir

* Move around + document generic tests

* Fix failing tests

* Fix merge conflict

* Grab fix from #4148

* PR feedback

* Fixup

* Add load_relation back, it was nice

* Last few test fixes

* Rm incremental_upsert, now unused

* Add changelog entry

automatic commit by git-black, original commits:
  8442fb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix comma condition for alter_relation_add_remove_columns
3 participants