[KYUUBI #6905] PyHive HTTP/HTTPS dialect to use the database name from url

### Why are the changes needed?
HTTP dialect ignores the database specified in the URL and uses the "default" instead.

### How was this patch tested?
Tested manually.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #6906 from developster/pyhive-update1.

Closes #6905

6e21d7259 [Cheng Pan] Update python/pyhive/sqlalchemy_hive.py
ec7d4629e [Octavian Ciubotaru] [KYUUBI #6905] PyHive HTTP/HTTPS dialect to use the database name from url

Lead-authored-by: Octavian Ciubotaru <ociubotaru@developmentgateway.org>
Co-authored-by: Cheng Pan <pan3793@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
Octavian Ciubotaru 2025-02-14 10:30:32 +08:00 committed by Cheng Pan
parent 7c110b68f8
commit 2a2e4c2123
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D

View File

@ -421,6 +421,7 @@ class HiveHTTPDialect(HiveDialect):
"scheme": self.scheme,
"username": url.username or None,
"password": url.password or None,
"database": url.database or "default",
}
if url.query:
kwargs.update(url.query)