Skip to content

Fix BaseBranchOperator import on Airflow 2 without standard provider - #73140

Merged
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:fix-branch-operator-airflow2-compat
Sep 14, 2026
Merged

vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:fix-branch-operator-airflow2-compat

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

The standard provider is only an optional extra of the providers that use these classes, so a deployment on Airflow 2 can legitimately not have it installed. Falling back to the Airflow 2 core module keeps the compat layer resolvable with just the apache-airflow dependency it already declares, matching how every other standard-provider entry in this layer behaves.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

The standard provider is only an optional extra of the providers that use
these classes, so a deployment on Airflow 2 can legitimately not have it
installed. Falling back to the Airflow 2 core module keeps the compat layer
resolvable with just the `apache-airflow` dependency it already declares,
matching how every other standard-provider entry in this layer behaves.
@vincbeck
vincbeck merged commit 05011bd into apache:main Sep 14, 2026
112 checks passed
@vincbeck
vincbeck deleted the fix-branch-operator-airflow2-compat branch September 14, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants