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

xxyu 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 4efe9fc  KYLIN-4628: Fail to use custom measure type when specifying 
cube to query
4efe9fc is described below

commit 4efe9fce487f49d051893cac88b4b83346171734
Author: tianhui5 <tianh...@xiaomi.com>
AuthorDate: Thu Jul 9 15:23:33 2020 +0800

    KYLIN-4628: Fail to use custom measure type when specifying cube to query
---
 query/src/main/java/org/apache/kylin/query/routing/QueryRouter.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/query/src/main/java/org/apache/kylin/query/routing/QueryRouter.java 
b/query/src/main/java/org/apache/kylin/query/routing/QueryRouter.java
index 1410ee6..b8ee98b 100644
--- a/query/src/main/java/org/apache/kylin/query/routing/QueryRouter.java
+++ b/query/src/main/java/org/apache/kylin/query/routing/QueryRouter.java
@@ -56,7 +56,9 @@ public class QueryRouter {
                 candidates.add(new Candidate(real, sqlDigest));
             if (BackdoorToggles.getForceHitCube() != null && 
BackdoorToggles.getForceHitCube().equalsIgnoreCase(real.getName())) {
                 logger.info("Force choose {} as selected cube for specific 
purpose.", real.getName());
-                return real;
+                candidates = Lists.newArrayListWithCapacity(1);
+                candidates.add(new Candidate(real, sqlDigest));
+                break;
             }
         }
 

Reply via email to