You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/11/04 09:25:54 UTC

incubator-kylin git commit: KYLIN-1078 Cannot have comments in the end of New Query textbox

Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging 41ad16ee0 -> 30eabafc0


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

Signed-off-by: Li, Yang <ya...@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-staging
Commit: 30eabafc0eea3b99d4025ed08931e65b74ef11e1
Parents: 41ad16e
Author: lidongsjtu <do...@ebay.com>
Authored: Wed Nov 4 16:11:23 2015 +0800
Committer: Li, Yang <ya...@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);