From commits-return-1547-archive-asf-public=cust-asf.ponee.io@iotdb.apache.org Wed Jun 5 00:01:57 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8B07518064D for ; Wed, 5 Jun 2019 02:01:57 +0200 (CEST) Received: (qmail 39511 invoked by uid 500); 5 Jun 2019 00:01:56 -0000 Mailing-List: contact commits-help@iotdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@iotdb.apache.org Delivered-To: mailing list commits@iotdb.apache.org Received: (qmail 39502 invoked by uid 99); 5 Jun 2019 00:01:56 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2019 00:01:56 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id B69468AA96; Wed, 5 Jun 2019 00:01:56 +0000 (UTC) Date: Wed, 05 Jun 2019 00:01:56 +0000 To: "commits@iotdb.apache.org" Subject: [incubator-iotdb] branch master updated: fix that ignoreTimeStamp in response is incorrectly set and used (#191) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155969291668.18646.14021733442276714178@gitbox.apache.org> From: dope@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-iotdb X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 343c7bd0c28e4db627a34b3fac11167f24970d78 X-Git-Newrev: e2fb4300554fd0ac665035bd97f2b0667565bf77 X-Git-Rev: e2fb4300554fd0ac665035bd97f2b0667565bf77 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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 columns) { TSExecuteStatementResp resp = getTSExecuteStatementResp(TS_StatusCode.SUCCESS_STATUS, ""); - resp.ignoreTimeStamp = true; + resp.setIgnoreTimeStamp(true); AuthorPlan authorPlan = (AuthorPlan) plan; switch (authorPlan.getAuthorType()) { case LIST_ROLE: