Skip to content

Commit

Permalink
[KYUUBI #5464] fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjunbo committed Nov 10, 2023
1 parent 01321dc commit ff0f30a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 " +
s"${ENGINE_JDBC_CONNECTION_PROVIDER.key} option to select a specific provider. " +
s"Found active providers ${filteredProviders.mkString("[", ", ", "]")}")
}
filteredProviders.head
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait WithMySQLEngine extends WithJdbcEngine with TestContainerForAll {

private val mysqlDockerImage = "mysql:8.0.32"

override val containerDef: MySQLContainer.Def = MySQLContainer.Def(
override val containerDef = MySQLContainer.Def(
dockerImageName = DockerImageName.parse(mysqlDockerImage),
username = "root",
password = "kyuubi")
Expand All @@ -40,9 +40,6 @@ trait WithMySQLEngine extends WithJdbcEngine with TestContainerForAll {
ENGINE_JDBC_CONNECTION_PASSWORD.key -> "kyuubi",
ENGINE_TYPE.key -> "jdbc",
ENGINE_JDBC_SHORT_NAME.key -> "mysql",
ENGINE_JDBC_DRIVER_CLASS.key -> "com.mysql.cj.jdbc.Driver",
ENGINE_JDBC_CONNECTION_PROVIDER.key ->
"MySQLConnectionProvider")
ENGINE_JDBC_DRIVER_CLASS.key -> "com.mysql.cj.jdbc.Driver")
}

}
6 changes: 6 additions & 0 deletions integration-tests/kyuubi-jdbc-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
<artifactId>testcontainers-scala-scalatest_${scala.binary.version}</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.dimafeng</groupId>
<artifactId>testcontainers-scala-mysql_${scala.binary.version}</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit ff0f30a

Please sign in to comment.