Fix HiveServer2Hook password handling for PLAIN auth (#62338)#62364
Merged
jscheffl merged 1 commit intoapache:mainfrom Feb 24, 2026
Merged
Fix HiveServer2Hook password handling for PLAIN auth (#62338)#62364jscheffl merged 1 commit intoapache:mainfrom
jscheffl merged 1 commit intoapache:mainfrom
Conversation
Contributor
|
Please rebase correctly your PR, it contains bunch of unrelated commits |
c4e587b to
a0103c7
Compare
Contributor
Author
Contributor
|
Not really @shashbha14, I still see a large unrelated diff |
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. |
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.