kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [01/30] incubator-kylin git commit: KYLIN-1078 Cannot have comments in the end of New Query textbox
Date Wed, 18 Nov 2015 02:38:55 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-HBase1.1.3 5063c386f -> ba076d5c1


KYLIN-1078 Cannot have comments in the end of New Query textbox

Signed-off-by: Li, Yang <yangli9@ebay.com>


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

Branch: refs/heads/1.x-HBase1.1.3
Commit: 30eabafc0eea3b99d4025ed08931e65b74ef11e1
Parents: 41ad16e
Author: lidongsjtu <dongli@ebay.com>
Authored: Wed Nov 4 16:11:23 2015 +0800
Committer: Li, Yang <yangli9@ebay.com>
Committed: Wed Nov 4 16:24:05 2015 +0800

----------------------------------------------------------------------
 server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/30eabafc/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java b/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
index 16f6633..419bd69 100644
--- a/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
+++ b/server/src/main/java/org/apache/kylin/rest/util/QueryUtil.java
@@ -107,12 +107,12 @@ public class QueryUtil {
 
         int limit = sqlRequest.getLimit();
         if (limit > 0 && !sql.toLowerCase().contains("limit")) {
-            sql += (" LIMIT " + limit);
+            sql += ("\nLIMIT " + limit);
         }
 
         int offset = sqlRequest.getOffset();
         if (offset > 0 && !sql.toLowerCase().contains("offset")) {
-            sql += (" OFFSET " + offset);
+            sql += ("\nOFFSET " + offset);
         }
         
         return healSickSql(sql);


Mime
View raw message