Skip to content

Commit

Permalink
Bring back hive support for Python 3.11 (#32607)
Browse files Browse the repository at this point in the history
Update airflow/providers/apache/hive/CHANGELOG.rst

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
  • Loading branch information
potiuk and uranusjr committed Aug 24, 2023
1 parent ed6a4fd commit 08188f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
7 changes: 7 additions & 0 deletions airflow/providers/apache/hive/CHANGELOG.rst
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
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
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

0 comments on commit 08188f8

Please sign in to comment.