Skip to content

Replace sasl with pyhive.get_installed_sasl for pure-sasl compatibility#55772

Merged
romsharon98 merged 4 commits into
apache:mainfrom
kesem0811:feature/change-to-pure-sasl
Sep 30, 2025
Merged

Replace sasl with pyhive.get_installed_sasl for pure-sasl compatibility#55772
romsharon98 merged 4 commits into
apache:mainfrom
kesem0811:feature/change-to-pure-sasl

Conversation

@kesem0811

Copy link
Copy Markdown
Contributor
  • Remove direct sasl/saslwrapper imports
  • Use pyhive.hive.get_installed_sasl which handles pure-sasl compatibility
  • Maintain same SASL authentication logic for GSSAPI/Kerberos
  • Ensures compatibility with pure-sasl package while preserving functionality

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

- Remove direct sasl/saslwrapper imports
- Use pyhive.hive.get_installed_sasl which handles pure-sasl compatibility
- Maintain same SASL authentication logic for GSSAPI/Kerberos
- Ensures compatibility with pure-sasl package while preserving functionality

@romsharon98 romsharon98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, only static checks need to be fixed

Comment thread dags/simple_spark_xcom_test.py Outdated
- Remove dags/simple_spark_xcom_test.py
- Remove dags/test_spark_kubernetes_xcom.py
- Keep only the Hive provider changes for pure-sasl compatibility
@kesem0811

Copy link
Copy Markdown
Contributor Author

The RAT license check is failing on files I didn’t modify (go-sdk/...). Do we need to add headers to these, or should they be excluded?
@romsharon98

@romsharon98

Copy link
Copy Markdown
Contributor

The RAT license check is failing on files I didn’t modify (go-sdk/...). Do we need to add headers to these, or should they be excluded?

@romsharon98

You need to fix this test

https://github.com/apache/airflow/actions/runs/18009293662/job/51238277816#step:6:1

- Reorganize imports according to ruff standards
- Fix import ordering and formatting
- Ensure code follows ruff linting rules
- Auto-fix 2 ruff errors found in the file
@kesem0811
kesem0811 force-pushed the feature/change-to-pure-sasl branch from d5ef258 to 5f1f682 Compare September 28, 2025 10:16
@eladkal
eladkal requested a review from romsharon98 September 28, 2025 11:54
@romsharon98
romsharon98 merged commit d321705 into apache:main Sep 30, 2025
80 checks passed
dabla pushed a commit to dabla/airflow that referenced this pull request Oct 12, 2025
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.

3 participants