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(bigquery): incorrect lineage when views are present #4568

Merged
merged 7 commits into from
Apr 7, 2022

Conversation

anshbansal
Copy link
Collaborator

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.

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Unit Test Results (build & test)

  95 files    95 suites   20m 27s ⏱️
681 tests 621 ✔️ 59 💤 1

For more details on these failures, see this check.

Results for commit 6b91c95.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Unit Test Results (metadata ingestion)

       5 files  ±0         5 suites  ±0   54m 31s ⏱️ - 4m 41s
   394 tests ±0     394 ✔️ ±0    0 💤 ±0  0 ±0 
1 814 runs  ±0  1 783 ✔️ +7  31 💤  - 7  0 ±0 

Results for commit 6b91c95. ± Comparison against base commit a20012f.

♻️ This comment has been updated with latest results.

@rslanka rslanka self-assigned this Apr 4, 2022
referenced_views = [
BigQueryTableRef.from_string_name(spec) for spec in raw_ref_views
]

try:
statementType = job["jobConfiguration"]["query"]["statementType"]
Copy link
Contributor

Choose a reason for hiding this comment

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

@treff7es / @anshbansal: Is this a bug? Should this instead be job["jobConfig"]["queryConfig"]["statementType"]?

Copy link
Contributor

Choose a reason for hiding this comment

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

based on google's documentation I think you are right, it should be just configuration -> https://cloud.google.com/bigquery/docs/reference/rest/v2/Job

@anshbansal anshbansal closed this Apr 6, 2022
@anshbansal anshbansal reopened this Apr 6, 2022
@anshbansal anshbansal closed this Apr 6, 2022
@anshbansal anshbansal reopened this Apr 6, 2022
@anshbansal anshbansal closed this Apr 6, 2022
@anshbansal anshbansal reopened this Apr 6, 2022
Copy link
Contributor

@rslanka rslanka left a comment

Choose a reason for hiding this comment

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

LGTM!

@rslanka rslanka merged commit 5ebb37a into datahub-project:master Apr 7, 2022
@anshbansal anshbansal deleted the fix-bigquery-lineage branch April 7, 2022 06:18
maggiehays pushed a commit to maggiehays/datahub that referenced this pull request Aug 1, 2022
…ect#4568)

* fix(bigquery): incorrect lineage when views are present

Co-authored-by: Ravindra Lanka <rlanka@acryl.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants