-
Notifications
You must be signed in to change notification settings - Fork 5
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
BAD-308 schema and table description updates #589
Conversation
Codecov ReportBase: 93.72% // Head: 93.63% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #589 +/- ##
===========================================
- Coverage 93.72% 93.63% -0.10%
===========================================
Files 50 50
Lines 6866 6847 -19
Branches 781 781
===========================================
- Hits 6435 6411 -24
- Misses 315 320 +5
Partials 116 116
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
5fac679
to
f2b3f4a
Compare
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.
Hey Keegan, the changes look good, just a couple of points for feedback:
- I think we should change the logic so that if you don't supply a release_date, then it just finds the schema with the exact table name. Then if you supply the release date then it finds the latest version of the schema. That would make the logic easier to understand.
- How are schemas with versions handled? Some workflows in the academic observatory have a schema_version parameter. I don't know if they are used, maybe we could just remove them.
e396a88
to
13f6726
Compare
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.
Hey Keegan, these changes look good to me, nice work!
This reverts commit 79a20ef.
This update was initially scoped to fix an issue where a table's descriptions are wiped if the table is updated.
In looking through the foundational utility functions, the following things have been changed:
find_schema()
The function has been altered in the following ways:
This results in the following changes to underlying code:
create_bigquery_table_from_query()
The function has been altered in the following ways:
This results in the following behaviour changes when calling the function
Table loading functions
prepare_bq_load(), prepare_bq_load_v2(), bq_load_shard() and bq_load_shard_v2()
These functions have changed in the following ways:
This was done for the following reasons:
bq_load_ingestion_partition(), bq_load_partition(), bq_append_from_file()
These functions have changed in the following ways:
This was done for the following reasons:
Relates to: