Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Aug 30, 2025

Handle missing logical_date in context when DAGs are triggered by assets in Airflow 3. The operator now uses dag_run.run_after as a fallback when logical_date is not available, following the same pattern as LatestOnlyOperator.

This ensures BigQuery job ID generation works correctly for both traditional scheduled DAGs and asset-triggered DAGs, maintaining compatibility with Airflow 2 and 3.

Fixes #55073


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Handle missing logical_date in context when DAGs are triggered by assets in
Airflow 3. The operator now uses dag_run.run_after as a fallback when
logical_date is not available, following the same pattern as LatestOnlyOperator.

This ensures BigQuery job ID generation works correctly for both traditional
scheduled DAGs and asset-triggered DAGs, maintaining compatibility with
Airflow 2 and 3.

Fixes apache#55073
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Aug 30, 2025
@kaxil kaxil requested review from eladkal and rawwar August 30, 2025 01:18
@kaxil kaxil merged commit 927e550 into apache:main Aug 30, 2025
79 checks passed
@kaxil kaxil deleted the fix-55073 branch August 30, 2025 08:36
mangal-vairalkar pushed a commit to mangal-vairalkar/airflow that referenced this pull request Aug 30, 2025
nothingmin pushed a commit to nothingmin/airflow that referenced this pull request Sep 2, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
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.

DAG with BigQueryInsertJobOperator not generating job_id when triggered by asset event in Airflow 3

2 participants