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

fix(ingest): bigquery - missing sqlalchemy dep and row count fix #6553

Merged
merged 4 commits into from
Nov 25, 2022

Conversation

treff7es
Copy link
Contributor

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Nov 25, 2022
@@ -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,
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can table be None?

Copy link
Contributor Author

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

@github-actions
Copy link

github-actions bot commented Nov 25, 2022

Unit Test Results (metadata ingestion)

       8 files  ±0         8 suites  ±0   59m 1s ⏱️ -10s
   764 tests ±0     761 ✔️ +1  2 💤 ±0  1  - 1 
1 530 runs  ±0  1 524 ✔️ +1  5 💤 ±0  1  - 1 

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.

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a 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?

@github-actions
Copy link

Unit Test Results (build & test)

621 tests  ±0   617 ✔️ ±0   15m 45s ⏱️ +11s
157 suites ±0       4 💤 ±0 
157 files   ±0       0 ±0 

Results for commit 5826810. ± Comparison against base commit 7a8e36d.

@treff7es treff7es merged commit d424edd into datahub-project:master Nov 25, 2022
cccs-Dustin pushed a commit to CybercentreCanada/datahub that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants