Skip to content

Conversation

@KamranImaaz
Copy link
Contributor

Fixes #60096

What

Adds a safety condition to OpenLineage extraction to prevent errors when
BigQueryUpdateTableSchemaOperator do not return a table resource.
Also removes duplicate and unused imports

Why

OpenLineage callbacks run after task execution and should not cause
task failures when metadata is unavailable.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Jan 10, 2026
@eladkal eladkal requested a review from mobuchowski January 12, 2026 17:51
Copy link
Contributor

@mobuchowski mobuchowski left a comment

Choose a reason for hiding this comment

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

@KamranImaaz can we leave the conditional imports? OpenLineage isn't a required provider; the operator should work even if it's not installed.

@KamranImaaz
Copy link
Contributor Author

@KamranImaaz can we leave the conditional imports? OpenLineage isn't a required provider; the operator should work even if it's not installed.

@mobuchowski Got it.I will update the implementation to keep the imports conditional.

@KamranImaaz KamranImaaz force-pushed the fix-bigquery-openlineage-60096 branch from c170d03 to 3b887d6 Compare January 13, 2026 18:52
@KamranImaaz
Copy link
Contributor Author

@mobuchowski I have Modified it. Looks good to me. Could you pls look into it. Thanks :)

@KamranImaaz
Copy link
Contributor Author

Thanks @mobuchowski :)

@KamranImaaz
Copy link
Contributor Author

KamranImaaz commented Jan 15, 2026

Hi @eladkal All Checks have passed, PR approved and the Changes can be merged cleanly :)

@mobuchowski mobuchowski merged commit 78dee38 into apache:main Jan 15, 2026
89 checks passed
@mobuchowski
Copy link
Contributor

Thanks @KamranImaaz.

@KamranImaaz KamranImaaz deleted the fix-bigquery-openlineage-60096 branch January 17, 2026 05:01
jason810496 pushed a commit to jason810496/airflow that referenced this pull request Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue in OpenLineage callback when table is None, moving imports up, type annotations.

3 participants