You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/05/11 05:12:45 UTC

[kylin] branch master updated: KYLIN-4407 fix IT

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

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


The following commit(s) were added to refs/heads/master by this push:
     new a174194  KYLIN-4407 fix IT
a174194 is described below

commit a17419409199fc2fca3116718ce658040e0d6bbf
Author: Zhong, Yanghong <nj...@apache.org>
AuthorDate: Fri May 8 21:51:32 2020 +0800

    KYLIN-4407 fix IT
---
 kylin-it/src/test/java/org/apache/kylin/query/KylinTestBase.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kylin-it/src/test/java/org/apache/kylin/query/KylinTestBase.java b/kylin-it/src/test/java/org/apache/kylin/query/KylinTestBase.java
index 8edca98..6a5e22f 100644
--- a/kylin-it/src/test/java/org/apache/kylin/query/KylinTestBase.java
+++ b/kylin-it/src/test/java/org/apache/kylin/query/KylinTestBase.java
@@ -240,6 +240,7 @@ public class KylinTestBase {
     protected ITable executeQuery(IDatabaseConnection dbConn, String queryName, String sql, boolean needSort)
             throws Exception {
         QueryContextFacade.resetCurrent();
+        QueryContextFacade.current().setProject(ProjectInstance.DEFAULT_PROJECT_NAME);
 
         // change join type to match current setting
         sql = changeJoinType(sql, joinType);
@@ -261,6 +262,7 @@ public class KylinTestBase {
 
     protected int executeQuery(String sql, boolean needDisplay) throws Exception {
         QueryContextFacade.resetCurrent();
+        QueryContextFacade.current().setProject(ProjectInstance.DEFAULT_PROJECT_NAME);
 
         // change join type to match current setting
         sql = changeJoinType(sql, joinType);
@@ -315,6 +317,7 @@ public class KylinTestBase {
     protected ITable executeDynamicQuery(IDatabaseConnection dbConn, String queryName, String sql,
             List<String> parameters, boolean needSort) throws Exception {
         QueryContextFacade.resetCurrent();
+        QueryContextFacade.current().setProject(ProjectInstance.DEFAULT_PROJECT_NAME);
 
         // change join type to match current setting
         sql = changeJoinType(sql, joinType);