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

Convert incremental on_schema_change tests #398

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

jtcohen6
Copy link
Contributor

@jtcohen6 jtcohen6 commented Jan 14, 2023

See dbt-labs/dbt-core#6618

The copy-pasted tests had not been updated since fall 2021. They are functionally equivalent to the converted "adapter zone" test that we can now inherit.

Checklist

@jtcohen6 jtcohen6 added the Skip Changelog Skips GHA to check for changelog file label Jan 14, 2023
@cla-bot cla-bot bot added the cla:yes label Jan 14, 2023
dev-requirements.txt Outdated Show resolved Hide resolved
@jtcohen6 jtcohen6 changed the title Covert incremental on_schema_change tests Convert incremental on_schema_change tests Jan 14, 2023
@jtcohen6 jtcohen6 force-pushed the jerco/convert-onschemachange-tests branch from f58ee56 to 8dbf6f3 Compare January 14, 2023 14:40
Copy link
Contributor

@ChenyuLInx ChenyuLInx left a comment

Choose a reason for hiding this comment

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

LGTM, seems ready to merge after core PR and removal of already marked todo item in this PR

@jtcohen6 jtcohen6 force-pushed the jerco/convert-onschemachange-tests branch from 5a99a99 to 2a105af Compare January 19, 2023 12:20
@jtcohen6 jtcohen6 merged commit 054422d into main Jan 19, 2023
@jtcohen6 jtcohen6 deleted the jerco/convert-onschemachange-tests branch January 19, 2023 12:48
colin-rogers-dbt pushed a commit that referenced this pull request Jan 19, 2023
* Convert incremental on_schema_change tests

* Switch to dbt-core main
colin-rogers-dbt added a commit that referenced this pull request Jan 19, 2023
* Mp/reduce ci daily run intervals (#392)

* Only run at 7:00 am est (before folks get into the office)

* Split jobs and adjust timestamps.

* Trim comments.

* Need both workflows on each job.

Co-authored-by: Mila Page <versusfacit@users.noreply.github.com>

* [CT-1507] create config for incremental models to use temp tables or views to fix regression in perf (#389)

* init push for pr to work on regression in temp tables vs views for dbt-snowflake

* adding additional table selection logic, functionality works locally based off snowflake query history

* extend condition logic to smaller more readable elif's take into account some lost table options

* add changie

* breaking out language selection for more readability, reorganizing conditional flow

* typo fix

* spacing fix

* change messaging for incremental model strategy selection

* add direct reference to delete+insert

* changing comment formatting and structure

* Convert incremental on_schema_change tests (#398)

* Convert incremental on_schema_change tests

* Switch to dbt-core main

* [CT-1507] part 2: Expand configuration to all strategies (#403)

* init push for pr to work on regression in temp tables vs views for dbt-snowflake

* adding additional table selection logic, functionality works locally based off snowflake query history

* extend condition logic to smaller more readable elif's take into account some lost table options

* add changie

* breaking out language selection for more readability, reorganizing conditional flow

* typo fix

* spacing fix

* change messaging for incremental model strategy selection

* add direct reference to delete+insert

* changing comment formatting and structure

* expand tmp_relation_type to be configurable for all incremental options

* re organize conditionl logic, add leading condtional for exceptions

* typo

* seperate if statements

* fix exception blocking

* seperate execptions condtional into two small condtionals to prevent a always case

* change conditional logic based on language

* change delete+insert exception logic, and messages for both exceptions

* change condition for more jinja language

* remove default value assigned to tmp_relation_type, change delete+insert excpetion to only kick off if view is assigned and not unique_key not none

* reword python exception

* minor comment change, revert some condtional logic (need to deal with none) value

* re add assignment of config

* comment changes

* put back low level part about append strategy

* minor change to workign for excpetion

* add changelog entry

* fix previous changelog entry

* change change log entry, remove some config from integration test

* remove unnded comma (#405)

Co-authored-by: Mila Page <67295367+VersusFacit@users.noreply.github.com>
Co-authored-by: Mila Page <versusfacit@users.noreply.github.com>
Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com>
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants