iotdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [incubator-iotdb] branch master updated: fix that ignoreTimeStamp in response is incorrectly set and used (#191)
Date Wed, 05 Jun 2019 00:01:56 GMT
This is an automated email from the ASF dual-hosted git repository.

dope pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new e2fb430  fix that ignoreTimeStamp in response is incorrectly set and used (#191)
e2fb430 is described below

commit e2fb4300554fd0ac665035bd97f2b0667565bf77
Author: Jiang Tian <jt2594838@163.com>
AuthorDate: Wed Jun 5 08:01:52 2019 +0800

    fix that ignoreTimeStamp in response is incorrectly set and used (#191)
---
 iotdb-cli/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java | 2 +-
 iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iotdb-cli/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java b/iotdb-cli/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java
index 586a5d9..2ded013 100644
--- a/iotdb-cli/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java
+++ b/iotdb-cli/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java
@@ -190,7 +190,7 @@ public abstract class AbstractClient {
       printTimestamp = !res.getMetaData().getColumnTypeName(0).equalsIgnoreCase(NEED_NOT_TO_PRINT_TIMESTAMP);
     }
     if (res instanceof IoTDBQueryResultSet) {
-      printTimestamp = printTimestamp && ((IoTDBQueryResultSet) res).isIgnoreTimeStamp();
+      printTimestamp = printTimestamp && !((IoTDBQueryResultSet) res).isIgnoreTimeStamp();
     }
 
     // Output values
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java b/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
index 4b3d62e..c502f46 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
@@ -593,7 +593,7 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext
{
 
   private TSExecuteStatementResp executeAuthQuery(PhysicalPlan plan, List<String> columns)
{
     TSExecuteStatementResp resp = getTSExecuteStatementResp(TS_StatusCode.SUCCESS_STATUS,
"");
-    resp.ignoreTimeStamp = true;
+    resp.setIgnoreTimeStamp(true);
     AuthorPlan authorPlan = (AuthorPlan) plan;
     switch (authorPlan.getAuthorType()) {
       case LIST_ROLE:


Mime
View raw message