-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ingest): bigquery - missing sqlalchemy dep and row count fix #6553
Conversation
@@ -349,8 +349,8 @@ def get_tables_for_dataset( | |||
) | |||
if "last_altered" in table | |||
else None, | |||
size_in_bytes=table.bytes if "bytes" in table else None, | |||
rows_count=table.row_count if "row_count" in table else None, | |||
size_in_bytes=table.bytes if "bytes" in table.keys() else None, |
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.
why do we need .keys()?
@@ -349,8 +349,8 @@ def get_tables_for_dataset( | |||
) | |||
if "last_altered" in table | |||
else None, | |||
size_in_bytes=table.bytes if "bytes" in table else None, | |||
rows_count=table.row_count if "row_count" in table else None, | |||
size_in_bytes=table.bytes if "bytes" in table.keys() else None, |
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.
Can table be None?
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.
table can't be null as this is return bigquery Row objects from the RowIterator
Unit Test Results (metadata ingestion) 8 files ±0 8 suites ±0 59m 1s ⏱️ -10s For more details on these failures, see this check. Results for commit 5826810. ± Comparison against base commit 7a8e36d. ♻️ This comment has been updated with latest results. |
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.
LGTM. Thanks. Are there tests for this?
Checklist