-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(bigquery): incorrect lineage when views are present #4568
Conversation
referenced_views = [ | ||
BigQueryTableRef.from_string_name(spec) for spec in raw_ref_views | ||
] | ||
|
||
try: | ||
statementType = job["jobConfiguration"]["query"]["statementType"] |
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.
@treff7es / @anshbansal: Is this a bug? Should this instead be job["jobConfig"]["queryConfig"]["statementType"]
?
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.
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
metadata-ingestion/src/datahub/ingestion/source/sql/bigquery.py
Outdated
Show resolved
Hide resolved
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!
…ect#4568) * fix(bigquery): incorrect lineage when views are present Co-authored-by: Ravindra Lanka <rlanka@acryl.io>
Checklist