You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2019/06/04 14:17:08 UTC

[incubator-iotdb] branch fix_incorrect_ignore_timestamp created (now 9baf93a)

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

jiangtian pushed a change to branch fix_incorrect_ignore_timestamp
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 9baf93a  fix that ignoreTimeStamp in response is incorrectly set and used

This branch includes the following new commits:

     new 9baf93a  fix that ignoreTimeStamp in response is incorrectly set and used

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: fix that ignoreTimeStamp in response is incorrectly set and used

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 9baf93a1d177cae574f844e09236fdae7aefbcbc
Author: jt <jt...@163.com>
AuthorDate: Tue Jun 4 22:16:58 2019 +0800

    fix that ignoreTimeStamp in response is incorrectly set and used
---
 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: