Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back hive support for Python 3.11 #32607

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions airflow/providers/apache/hive/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
Changelog
---------

The provider now uses pure-sasl, a pure-Python implementation of SASL,
which is better maintained than previous sasl implementation, even
if a bit slower for sasl interface. It also allows hive to be
installed for Python 3.11.


6.1.4
.....

Expand All @@ -49,6 +55,7 @@ Misc
* ``Add more accurate typing for DbApiHook.run method (#31846)``
* ``Move Hive configuration to Apache Hive provider (#32777)``


6.1.2
.....

Expand Down
11 changes: 1 addition & 10 deletions airflow/providers/apache/hive/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,9 @@ dependencies:
- apache-airflow-providers-common-sql>=1.3.1
- hmsclient>=0.1.0
- pandas>=0.17.1
- pyhive[hive]>=0.6.0
# in case of Python 3.9 sasl library needs to be installed with version higher or equal than
# 0.3.1 because only that version supports Python 3.9. For other Python version pyhive[hive] pulls
# the sasl library anyway (and there sasl library version is not relevant)
- sasl>=0.3.1; python_version>="3.9"
- pyhive[hive_pure_sasl]>=0.7.0
- thrift>=0.9.2

# Excluded because python-sasl is not yet compatible
# with 3.11. See https://github.com/cloudera/python-sasl/issues/30
excluded-python-versions:
- "3.11"

integrations:
- integration-name: Apache Hive
external-doc-url: https://hive.apache.org/
Expand Down
7 changes: 2 additions & 5 deletions generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@
"apache-airflow>=2.4.0",
"hmsclient>=0.1.0",
"pandas>=0.17.1",
"pyhive[hive]>=0.6.0",
"sasl>=0.3.1; python_version>=\"3.9\"",
"pyhive[hive_pure_sasl]>=0.7.0",
"thrift>=0.9.2"
],
"cross-providers-deps": [
Expand All @@ -133,9 +132,7 @@
"samba",
"vertica"
],
"excluded-python-versions": [
"3.11"
]
"excluded-python-versions": []
},
"apache.impala": {
"deps": [
Expand Down