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

added unique_key to the test_docs_generate places relevant to changes… #114

Merged
merged 23 commits into from
Feb 22, 2022

Conversation

McKnight-42
Copy link
Contributor

@McKnight-42 McKnight-42 commented Feb 4, 2022

… made in core, TODO: double check that any other references to unique_key in bigquery there are two more on that file need to be changed to None value as well, and design an integration test

resolves #112

Description

making changes to be in line with changes to dbt-core regarding use of lists in unique_key values. #4618

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 to the "dbt-bigquery next" section.

… made in core, TODO: double check that any other references to unique_key in bigquery there are two more on that file need to be changed to None value as well, and design an integration test
@McKnight-42 McKnight-42 marked this pull request as ready for review February 11, 2022 17:34
McKnight-42 and others added 5 commits February 11, 2022 14:15
…ma_tests after pair coding with kyle, similiar test in vain to my previous version which is still in code but is using modified prexisting test functionality which seems a much cleaner simple test
@jtcohen6
Copy link
Contributor

Eventually, we'll want to reconcile the integration test case added here, with the ones added in dbt-labs/dbt-snowflake#96, the one needed in dbt-labs/dbt-spark#291, and the ones we'll need when resolving dbt-labs/dbt-core#4738. They're all testing the same functionality, from the end user's point of view. Our new testing framework must give us the ability to apply those same test cases, across all our repositories, with zero copy/paste. Happy to talk more about this.

I'm going to remove myself from code review — let me know if you have any specific questions / things you want me to look at!

@jtcohen6 jtcohen6 removed their request for review February 17, 2022 13:59
…s to be around models using ::date will fix tomorrow
…patterns from seeds, created a new class to cut down on runs of a test that was being inherited
@VersusFacit VersusFacit marked this pull request as draft February 18, 2022 22:49
@VersusFacit
Copy link
Contributor

Just logging for posterity that Matt and I should be syncing up Tuesday this week to collate all test changes once we have some confirmation on what code changes need to be made to my Snowflake version of this PR. We all luck, we'll have an approval on this then!

@McKnight-42 McKnight-42 marked this pull request as ready for review February 22, 2022 21:44
@VersusFacit
Copy link
Contributor

I'm going to approve this because we adapted my code which was thoroughly vetted by Kyle and Chenyu and I believe Leah herself! The snowflake tests were merged, so we'll merge this as well.

@McKnight-42 McKnight-42 merged commit 5835c39 into main Feb 22, 2022
@McKnight-42 McKnight-42 deleted the mcknight/CT-116 branch February 22, 2022 22:01
@McKnight-42 McKnight-42 self-assigned this Mar 22, 2022
siephen pushed a commit to AgencyPMG/dbt-bigquery that referenced this pull request May 16, 2022
dbt-labs#114)

* added unique_key to the test_docs_generate places relevant to changes made in core, TODO: double check that any other references to unique_key in bigquery there are two more on that file need to be changed to None value as well, and design an integration test

* init attempt at test, for unique key, getting type error for hashable currently

* moved to using basic hash method, and changing up calls and saving of values, failing now due to being unequal

* fixed minor errors have all models building properly including incremental model now only have to fine tune till assertions are correct

* remove items from docs_generate.py objects to move to secondary pr

* using assertTableEqual

* added new models and test for single unique key

* adding tests for single unique key, and removing unused import

* removing import

* add first draft for changelog which links to bigquery issue which points back to core pr to initial contributor issue/pr

* working on new version of unique_key as list test in incremental_schema_tests after pair coding with kyle, similiar test in vain to my previous version which is still in code but is using modified prexisting test functionality which seems a much cleaner simple test

* comments and docstring addition

* beginning transition to unify tests between adapters, only issue seems to be around models using ::date will fix tomorrow

* applied castings to expected tables as bigquery auto detects certain patterns from seeds, created a new class to cut down on runs of a test that was being inherited

* minor fixes

* minor naming changes and removal of file from older tests

* updates implementing mila final versions to remain similar

* removing unnecessary line
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.

[CT-116] Add integration test for new list input for unique ID
4 participants