kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject kylin git commit: KYLIN-1913 fix bug
Date Tue, 26 Jul 2016 02:31:10 GMT
Repository: kylin
Updated Branches:
  refs/heads/beforepomupdate b4a9043ad -> 5e275840f


KYLIN-1913 fix bug


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

Branch: refs/heads/beforepomupdate
Commit: 5e275840f5c728600ee056f99a8f874f11176386
Parents: b4a9043
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Fri Jul 22 17:45:27 2016 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Mon Jul 25 22:56:10 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/5e275840/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 0f9807f..a2d0402 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
@@ -102,7 +102,7 @@ public class QueryUtil {
     public static String massageSql(SQLRequest sqlRequest) {
         String sql = sqlRequest.getSql();
         sql = sql.trim();
-        sql = sql.replace("\r", "").replace("\n", System.getProperty("line.separator"));
+        sql = sql.replace("\r", " ").replace("\n", System.getProperty("line.separator"));
 
         while (sql.endsWith(";"))
             sql = sql.substring(0, sql.length() - 1);


Mime
View raw message