Skip to content

Databricks provider and numpy constraint for python 3.11 and 3.12 for Airflow 3.3.0 got downgraded #69603

Closed

Description

@n-badtke-cg

Under which category would you file this issue?

Airflow Core

Apache Airflow version

3.3.0

What happened and how to reproduce it?

The contstraints for Airflow 3.3.0 and python 3.11 (https://github.com/apache/airflow/blob/constraints-3-3/constraints-3.11.txt#L128) and 3.12 (https://github.com/apache/airflow/blob/constraints-3-3/constraints-3.12.txt#L128) are not properly managed, at least for the databricks provider.

There is listed apache-airflow-providers-databricks==6.13.0 which is a version from October 2024.

apache-airflow-providers-databricks==6.13.0 has import errors for 3.3.0

With Airflow 3.2.x python 3.12 constraints (https://github.com/apache/airflow/blob/constraints-3-2/constraints-3.12.txt#L128), there is apache-airflow-providers-databricks==7.15.0

What you think should happen instead?

I think there should be something near the latest version 7.16.1. I don't know if this intended or if there might be a deeper issue because with Airflow 3.2.x, a proper version is included.

Operating System

container

Deployment

Official Apache Airflow Helm Chart

Apache Airflow Provider(s)

databricks

Versions of Apache Airflow Providers

apache-airflow-providers-databricks==6.13.0

Official Helm Chart version

1.22.0 (latest released)

Kubernetes Version

1.35

Helm Chart configuration

airflowVersion: 3.3.0
images:
  airflow:
    tag: 3.3.0

Docker Image customizations

not applicable

Anything else?

none

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Jul 8, 2026
  2. n-badtke-cg commented on Jul 8, 2026

    @n-badtke-cg
    ContributorAuthor

    I compared
    Airflow 3.2.x python 3.12 constraints (https://github.com/apache/airflow/blob/constraints-3-2/constraints-3.12.txt) with
    Airflow 3.3.x python 3.12 constraints (https://github.com/apache/airflow/blob/constraints-3-3/constraints-3.12.txt)

    Downgrades I found (left is constraints-3-2, right is constraints-3-3):

    • apache-airflow-providers-databricks==7.15.0 -> apache-airflow-providers-databricks==6.13.0
    • databricks-sql-connector==4.2.5 -> databricks-sql-connector==2.0.2
      • databricks-sql-connector is a dependency of apache-airflow-providers-databricks
    • numpy==2.4.6 -> numpy==1.26.4
    • pandas==2.3.3 -> pandas==2.1.4

    Apart from that, the diffs for python 3.11 and 3.12 look more weird in general: https://github.com/apache/airflow/compare/constraints-3-2..constraints-3-3

  3. changed the title [-]Databricks provider constraint for python 3.11 and 3.12 is at an old version[/-] [+]Databricks provider constraint for python 3.11 and 3.12 for Airflow 3.3.0 got downgraded[/+] on Jul 8, 2026
  4. changed the title [-]Databricks provider constraint for python 3.11 and 3.12 for Airflow 3.3.0 got downgraded[/-] [+]Databricks provider and numpy constraint for python 3.11 and 3.12 for Airflow 3.3.0 got downgraded[/+] on Jul 8, 2026
  5. n-badtke-cg commented on Jul 8, 2026

    @n-badtke-cg
    ContributorAuthor

    Ah btw, the databricks provider and numpy constraints for python 3.10, 3.13 and 3.14 of Airflow 3.3.0 seems to be up-to-date.

    It is really only about python 3.11 and 3.12 specifically

  6. DonHaul commented on Jul 8, 2026

    @DonHaul
    Contributor

    Also pandas is now pandas==2.1.4 was pandas==2.3.3

  7. n-badtke-cg commented on Jul 8, 2026

    @n-badtke-cg
    ContributorAuthor

    Also pandas is now pandas==2.1.4 was pandas==2.3.3

    presumably because of numpy?

    EDIT: hmm, I am tempted to assume that the dependencies go like this:

    1. apache-airflow-providers-databricks==7.15.0 -> apache-airflow-providers-databricks==6.13.0
    2. databricks-sql-connector is a dependency of apache-airflow-providers-databricks: https://github.com/apache/airflow/blob/main/providers/databricks/pyproject.toml#L66
    3. pandas is a dependency of apache-airflow-providers-databricks: https://github.com/apache/airflow/blob/main/providers/databricks/pyproject.toml#L69
    4. numpy is a dependency of pandas: https://github.com/pandas-dev/pandas/blob/main/pyproject.toml#L11
  8. eladkal commented on Jul 9, 2026

    @eladkal
    Contributor

    I think there should be something near the latest version 7.16.1. I don't know if this intended or if there might be a deeper issue because with Airflow 3.2.x, a proper version is included.

    There is no way to do that. The versions are decided by PIP resolution algorithm. As long as versions are compatible that is acceptable.

    You can always generate your own constraints file. You don't have to use the one provided by Airflow.

  9. n-badtke-cg commented on Jul 13, 2026

    @n-badtke-cg
    ContributorAuthor

    @imkp1 wrong issue?

  10. imkp1 commented on Jul 13, 2026

    @imkp1

    @imkp1 wrong issue?

    @n-badtke-cg Yep, valid reference for a validation case in my repo, but accidentally used GitHub's cross-reference syntax in the commit message. Fixed.

  11. eladkal commented on Jul 13, 2026

    @eladkal
    Contributor

    Since there is no action item on this issue I am going to close it.

  12. 18 remaining items

  13. potiuk commented on Jul 18, 2026

    @potiuk
    Member

    Since it's more than 2 weeks for 3.3.1 - I think it's worth fixing it in relased image and announcement in users@ list

  14. added a commit that references this issue on Jul 18, 2026
    c14e371
  15. potiuk commented on Jul 19, 2026

    @potiuk
    Member

    The databricks provider downgrade on the Airflow 3.3.0 constraints for Python 3.11 and 3.12 has been fixed.

    Root cause: the constraints pinned thrift==0.23.0, which conflicts with databricks-sql-connector 4.x (thrift<0.21.0). During resolution the newer thrift was kept and the connector was downgraded to 2.0.2, which in turn dragged apache-airflow-providers-databricks back to 6.13.0 (Oct 2024). Python 3.10/3.13/3.14 were unaffected.

    Fix — the Python 3.11 and 3.12 pins were brought in line with the other interpreters:

    • apache-airflow-providers-databricks 6.13.0 → 7.16.1
    • databricks-sql-connector 2.0.2 → 4.2.5
    • thrift 0.23.0 → 0.16.0

    This was applied to both the constraints-3.3.0 tag and the rolling constraints-3-3 branch. The generator-side fix that prevents recurrence (pinning databricks-sql-connector>=4.0.0 during constraint generation) is already on v3-3-test (#69871). The published 3.3.0 images are being refreshed with the corrected constraints.


    Drafted-by: Claude Code (Opus 4.8); reviewed by potiuk before posting

  16. added this to the Airflow 3.3.1 milestone on Jul 19, 2026
  17. potiuk commented on Jul 19, 2026

    @potiuk
    Member

    Release coming after we merge #70083 and apply it to 3-3-test

  18. potiuk commented on Jul 19, 2026

    @potiuk
    Member

    Fixed. The constraints-3.3.0 tag and the constraints-3-3 branch now pin apache-airflow-providers-databricks 7.16.1 / databricks-sql-connector 4.2.5 / thrift 0.16.0 for Python 3.11 and 3.12 (matching the other interpreters), and the official apache/airflow:3.3.0 py3.11/3.12 Docker images have been rebuilt with the corrected constraints. The docker-stack changelog records the change. Closing as resolved.


    Drafted-by: Claude Code (Opus 4.8); reviewed by potiuk before posting

  19. added a commit that references this issue on Aug 5, 2026
    f610953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerskind:bugneeds-triageprovider:databricks

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions