-
Notifications
You must be signed in to change notification settings - Fork 163
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
Additional Unit Tests Column Logic #1348
base: main
Are you sure you want to change the base?
Additional Unit Tests Column Logic #1348
Conversation
closing/re-opening to pickup the |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Alice Naghshineh.
|
@cla-bot check |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Alice Naghshineh.
|
The cla-bot has been summoned, and re-checked this pull request! |
@anaghshineh Can you confirm if you've signed the CLA? The bot previously approved you, but we have been having issues with it lately. If you haven't signed it, could you please sign it? If you have, please let us know and we'll look into it. Thanks! |
Hey, @mikealfare! I previously signed it. I just signed it again. I recently got a new laptop & changed a few configurations in my GitHub account – maybe that's at play? |
@cla-bot check |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Alice Naghshineh.
|
The cla-bot has been summoned, and re-checked this pull request! |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Alice Naghshineh.
|
Problem
Only the
get_nested_column_data_types
method indbt/adapters/bigquery/column.py
has unit tests defined. This method relies on other methods to produce its output. These other methods operate recursively and can be difficult to follow for the range of possible inputs (as I found when investigating dbt-labs/dbt-adapters#554). Adding more unit tests to ensure the integrity of these recursive methods would provide developers with a lot more confidence when making changes.Solution
This PR adds many unit tests for the recursive
_update_nested_column_data_types
method. These will help ensure the integrity of column-related logic, particularly more complex logic around the handling of nested columns.Checklist