File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
src/test/scala/io/github/mtsongithub/doetl/sparkdialectextensions/clickhouse Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 33# ClickHouse
44CH_HOST = localhost
55CH_PORT = 8123
6- CH_PORT_CLIENT = 9001
76CH_DATABASE = spark
87CH_USER = spark
98CH_PASSWORD = 123UsedForTestOnly@!
Original file line number Diff line number Diff line change 1515 runs-on : ubuntu-latest
1616 services :
1717 clickhouse :
18- image : clickhouse/clickhouse-server
18+ image : clickhouse/clickhouse-server:latest-alpine
1919 env :
2020 TZ : UTC
2121 CLICKHOUSE_DB : spark
Original file line number Diff line number Diff line change @@ -11,20 +11,18 @@ trait ClickhouseFixture extends BeforeAndAfterEach { self: Suite =>
1111
1212 val jdbcHostname : String = dotenv.get(" CH_HOST" )
1313 val jdbcPort : String = dotenv.get(" CH_PORT" )
14- val jdbcPortClient : String = dotenv.get(" CH_PORT_CLIENT" )
1514 val database : String = dotenv.get(" CH_DATABASE" )
1615 val jdbcUser : String = dotenv.get(" CH_USER" )
1716 val jdbcPassword : String = dotenv.get(" CH_PASSWORD" )
1817 var tableName : String = _
1918 val jdbcUrl : String = s " jdbc:clickhouse:// $jdbcHostname: ${jdbcPort}/ $database"
2019
21- val connectionProps = new java.util.Properties ()
2220 var connection : Connection = _
2321
2422 override def beforeEach (): Unit = {
2523 super .beforeEach()
2624 tableName = Random .alphanumeric.take(10 ).mkString
27- connection = DriverManager .getConnection(jdbcUrl, connectionProps )
25+ connection = DriverManager .getConnection(jdbcUrl, jdbcUser, jdbcPassword )
2826 }
2927
3028 def setupTable (tableSchema : String , engine : String = " TinyLog" ): Unit = {
You can’t perform that action at this time.
0 commit comments