This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5_beta
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 7eb278b2dc0a7e5c98385ab645b458cfc6c1f15e
Author: Pengfei Zhan <dethr...@gmail.com>
AuthorDate: Tue Apr 25 17:36:52 2023 +0800

    KYLIN-5639 IT of ClickHouse don't work for missing dependency
---
 src/second-storage/clickhouse-it/pom.xml                             | 5 +++++
 .../java/io/kyligence/kap/newten/clickhouse/ClickHouseUtils.java     | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/second-storage/clickhouse-it/pom.xml 
b/src/second-storage/clickhouse-it/pom.xml
index 6f85d66608..8088ede518 100644
--- a/src/second-storage/clickhouse-it/pom.xml
+++ b/src/second-storage/clickhouse-it/pom.xml
@@ -263,6 +263,11 @@
             <artifactId>kylin-metadata-server</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.kylin</groupId>
+            <artifactId>kylin-spark-common</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git 
a/src/second-storage/clickhouse-it/src/test/java/io/kyligence/kap/newten/clickhouse/ClickHouseUtils.java
 
b/src/second-storage/clickhouse-it/src/test/java/io/kyligence/kap/newten/clickhouse/ClickHouseUtils.java
index ecf7e3fc61..bef307dcdc 100644
--- 
a/src/second-storage/clickhouse-it/src/test/java/io/kyligence/kap/newten/clickhouse/ClickHouseUtils.java
+++ 
b/src/second-storage/clickhouse-it/src/test/java/io/kyligence/kap/newten/clickhouse/ClickHouseUtils.java
@@ -101,7 +101,8 @@ public class ClickHouseUtils {
     private static final Pattern _extraQuotes = 
Pattern.compile("([\"]*)([^\"]*)([\"]*)");
     static public String DEFAULT_VERSION = "22.5.2.53";//"20.8.2.3"; 
//"20.10.3.30";"20.10.2.20";
     static public String DEFAULT_TAG = "clickhouse/clickhouse-server:" + 
DEFAULT_VERSION;
-    static public DockerImageName CLICKHOUSE_IMAGE = 
DockerImageName.parse(DEFAULT_TAG);
+    static public DockerImageName CLICKHOUSE_IMAGE = 
DockerImageName.parse(DEFAULT_TAG)
+            .asCompatibleSubstituteFor("yandex/clickhouse-server");
 
     static public JdbcDatabaseContainer<?> startClickHouse() {
         int tryTimes = 3;

Reply via email to