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

nju_yaho pushed a commit to tag ebay-3.1.0-release-20200701
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 6c7f4e0dd3672c41c7275f05d4146ade34e80855
Author: Zhong, Yanghong <nju_y...@apache.org>
AuthorDate: Fri Jun 19 18:00:28 2020 +0800

    EBAY-KYLIN-1442 Json ignore new added fields in SQLResponse
---
 .../src/main/java/org/apache/kylin/rest/response/SQLResponse.java      | 3 +++
 .../src/test/java/org/apache/kylin/rest/response/SQLResponseTest.java  | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/server-base/src/main/java/org/apache/kylin/rest/response/SQLResponse.java 
b/server-base/src/main/java/org/apache/kylin/rest/response/SQLResponse.java
index aa9698d..85b7ab5 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/response/SQLResponse.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/response/SQLResponse.java
@@ -169,6 +169,7 @@ public class SQLResponse implements Serializable {
         return isPartial;
     }
 
+    @JsonIgnore
     public boolean isPushDown() {
         return queryPushDown;
     }
@@ -181,6 +182,7 @@ public class SQLResponse implements Serializable {
         this.totalScanCount = totalScanCount;
     }
 
+    @JsonIgnore
     public long getTotalScanBytes() {
         return totalScanBytes;
     }
@@ -205,6 +207,7 @@ public class SQLResponse implements Serializable {
         this.storageCacheUsed = storageCacheUsed;
     }
 
+    @JsonIgnore
     public String getTraceUrl() {
         return traceUrl;
     }
diff --git 
a/server-base/src/test/java/org/apache/kylin/rest/response/SQLResponseTest.java 
b/server-base/src/test/java/org/apache/kylin/rest/response/SQLResponseTest.java
index 4055a27..6ca279f 100644
--- 
a/server-base/src/test/java/org/apache/kylin/rest/response/SQLResponseTest.java
+++ 
b/server-base/src/test/java/org/apache/kylin/rest/response/SQLResponseTest.java
@@ -33,8 +33,7 @@ public class SQLResponseTest {
     @Test
     public void testInterfaceConsistency() throws IOException {
         String[] attrArray = new String[] { "columnMetas", "results", "cube", 
"affectedRowCount", "isException",
-                "exceptionMessage", "duration", "partial", "totalScanCount", 
"hitExceptionCache", "storageCacheUsed",
-                "pushDown", "traceUrl", "totalScanBytes" };
+                "exceptionMessage", "duration", "partial", "totalScanCount", 
"hitExceptionCache", "storageCacheUsed"};
 
         SQLResponse sqlResponse = new SQLResponse(null, null, "learn_cube", 
100, false, null, false, false);
         String jsonStr = JsonUtil.writeValueAsString(sqlResponse);

Reply via email to