wangzhigang1999 commented on code in PR #7442:
URL: https://github.com/apache/kyuubi/pull/7442#discussion_r3219094858
##########
externals/kyuubi-jdbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/session/JdbcSessionImpl.scala:
##########
@@ -63,6 +64,16 @@ class JdbcSessionImpl(
sessionConnection = ConnectionProvider.create(sessionConf)
databaseMetaData = sessionConnection.getMetaData
}
+ // Apply URL database before init SQL so DDL runs in the user-requested
database.
+ // "default" is a stub Hive clients send when the URL has no `/<db>` -
skip it, since
+ // forwarding it would fail on backends (PG, ClickHouse) lacking that
database.
+ conf.get(USE_DATABASE) match {
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]