Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Oct 22, 2025

Replace version-specific conditional imports with ``common.compat.sdk` layer. This standardizes compatibility handling across Airflow 2.x and 3.x.

Changes:

  • Added apache-airflow-providers-common-compat dependency to both providers
  • Replaced all version_compat imports with common.compat.sdk imports
  • Simplified import logic by removing conditional version checks
  • Updated version_compat.py files to retain only version constants

^ 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.

Replace version-specific conditional imports with ``common.compat.sdk` layer.
This standardizes compatibility handling across Airflow 2.x and 3.x.

Changes:
- Added apache-airflow-providers-common-compat dependency to both providers
- Replaced all version_compat imports with common.compat.sdk imports
- Simplified import logic by removing conditional version checks
- Updated version_compat.py files to retain only version constants
@eladkal eladkal merged commit 08ff167 into apache:main Oct 22, 2025
94 checks passed
@kaxil kaxil deleted the migrate-jdbc-jenkins-to-common-compat branch December 31, 2025 02:16
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