kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [32/49] kylin git commit: minor fix for QueryUtil
Date Sun, 06 Nov 2016 09:31:08 GMT
minor fix for QueryUtil


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e3e9ad3a
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e3e9ad3a
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e3e9ad3a

Branch: refs/heads/KYLIN-1971
Commit: e3e9ad3a2b347eee71aa6b243a2561e6f94fd370
Parents: 2c8d775
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Wed Nov 2 15:29:56 2016 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Thu Nov 3 13:34:12 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kylin/rest/util/QueryUtil.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/e3e9ad3a/server-base/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
----------------------------------------------------------------------
diff --git a/server-base/src/main/java/org/apache/kylin/rest/util/QueryUtil.java b/server-base/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
index 66619fe..eb73e8f 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
@@ -94,7 +94,7 @@ public class QueryUtil {
         private static final String SM = "\\s+";
         private static final Pattern PTN_GROUP_BY = Pattern.compile(S1 + "GROUP" + SM + "BY"
+ S1, Pattern.CASE_INSENSITIVE);
         private static final Pattern PTN_HAVING_COUNT_GREATER_THAN_ZERO = Pattern.compile(S1
+ "HAVING" + SM + "[(]?" + S0 + "COUNT" + S0 + "[(]" + S0 + "1" + S0 + "[)]" + S0 + ">"
+ S0 + "0" + S0 + "[)]?", Pattern.CASE_INSENSITIVE);
-        private static final Pattern PTN_SUM_1 = Pattern.compile(S1 + "SUM" + S0 + "[(]"
+ S0 + "[1]" + S0 + "[)]" + S1, Pattern.CASE_INSENSITIVE);
+        private static final Pattern PTN_SUM_1 = Pattern.compile(S0 + "SUM" + S0 + "[(]"
+ S0 + "[1]" + S0 + "[)]" + S0, Pattern.CASE_INSENSITIVE);
         private static final Pattern PTN_INTERVAL = Pattern.compile("interval" + SM + "(floor\\()([\\d\\.]+)(\\))"
+ SM + "(second|minute|hour|day|month|year)", Pattern.CASE_INSENSITIVE);
         private static final Pattern PTN_CONCAT = Pattern.compile("concat\\(.+?\\)");//non-greedy
         private static final Pattern PTN_HAVING_ESCAPE_FUNCTION = Pattern.compile("\\{fn"
+ "(.*?)" + "\\}", Pattern.CASE_INSENSITIVE);


Mime
View raw message