[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:
parent
7c110b68f8
commit
2a2e4c2123
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user