Kwafoor commented on code in PR #5588:
URL: https://github.com/apache/kyuubi/pull/5588#discussion_r1389206153
##########
externals/kyuubi-jdbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/connection/ConnectionProvider.scala:
##########
@@ -57,10 +57,9 @@ abstract class AbstractConnectionProvider extends Logging {
case None =>
// TODO
if (filteredProviders.size != 1) {
- throw new IllegalArgumentException(
- "JDBC connection initiated but more than one connection provider
was found. Use " +
- s"${ENGINE_JDBC_CONNECTION_PROVIDER.key} option to select a
specific provider. " +
- s"Found active providers ${filteredProviders.mkString("[", ", ",
"]")}")
+ warn("JDBC connection initiated but more than one connection
provider was found. Use " +
Review Comment:
I believe using a distinct subclass of `MySQLConnectionProvider` would be
better, as it helps users distinguish between different engines(MySQL,Doris).
The presence of multiple connection providers does not impact user's
experience, and shouldn't throw an exception and terminate the process.
Instead, it should just remind users to set the
`ENGINE_JDBC_CONNECTION_PROVIDER` parameter.
--
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]