Fix HiveServer2Hook password handling for PLAIN auth (#62338)#62364
Merged
Conversation
shashbha14
requested review from
Lee-W,
amoghrajesh,
ashb,
bbovenzi,
bolkedebruin,
bugraoz93,
choo121600,
dabla,
dheerajturaga,
dstandish,
ephraimbuddy,
gopidesupavan,
guan404ming,
hussein-awala,
jason810496,
jedcunningham,
josh-fell,
jscheffl,
kaxil,
mobuchowski,
o-nikolas,
pierrejeambrun,
potiuk,
rawwar,
ryanahamilton,
shahar1,
shubhamraj-git,
uranusjr,
vatsrahul1001 and
vincbeck
as code owners
February 23, 2026 15:36
Contributor
|
Please rebase correctly your PR, it contains bunch of unrelated commits |
shashbha14
force-pushed
the
fix-hive-thrift-password-62338
branch
from
February 23, 2026 16:10
c4e587b to
a0103c7
Compare
Contributor
Author
Contributor
|
Not really @shashbha14, I still see a large unrelated diff |
shashbha14
force-pushed
the
fix-hive-thrift-password-62338
branch
from
February 24, 2026 14:19
a0103c7 to
17f2483
Compare
Contributor
Author
|
I've rebased the branch from the latest main and removed all unrelated commits. The PR now only contains the fix for #62338 and the corresponding unit test. Take another look, @vincbeck @amoghrajesh. |
jscheffl
approved these changes
Feb 24, 2026
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
1 task
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
Co-authored-by: Shashwati <shashwatibhattacaharya21.2@gmail.com>
Ankurdeewan
pushed a commit
to Ankurdeewan/airflow
that referenced
this pull request
Mar 15, 2026
Co-authored-by: Shashwati <shashwatibhattacaharya21.2@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When creating a Hive Server 2 Thrift connection using the PLAIN authentication mechanism (the default), Airflow was failing to pass the provided password to the underlying pyhive library. This caused authentication failures even when correct credentials were provided.
This PR adds PLAIN to the list of mechanisms that correctly retrieve and pass the password in HiveServer2Hook.get_conn.
Related Issue: Fixes #62338
Tests: Added a new unit test
test_get_conn_with_password_plain
in
tests/unit/apache/hive/hooks/test_hive.py
to verify the fix.