Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B28A3200D01 for ; Fri, 22 Sep 2017 08:25:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF81D1609BE; Fri, 22 Sep 2017 06:25:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 021CA1609A7 for ; Fri, 22 Sep 2017 08:25:25 +0200 (CEST) Received: (qmail 6358 invoked by uid 500); 22 Sep 2017 06:25:25 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 6346 invoked by uid 99); 22 Sep 2017 06:25:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 06:25:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 62C0A191995 for ; Fri, 22 Sep 2017 06:25:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OsL5dUqKhKUj for ; Fri, 22 Sep 2017 06:25:21 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9D582610D2 for ; Fri, 22 Sep 2017 06:25:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v8M6PK7w025548; Fri, 22 Sep 2017 06:25:20 GMT Message-Id: <201709220625.v8M6PK7w025548@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 5 Date: Fri, 22 Sep 2017 06:25:20 +0000 From: "Zoram Thanga (Code Review)" To: Zoram Thanga , Matthew Jacobs , impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5599=3A_Fix_for_mis-use_of_TimestampValue=0A?= X-Gerrit-Change-Id: I9b0ae06f6d94968c87a199625aa3332b26988142 X-Gerrit-Change-Number: 8084 X-Gerrit-ChangeURL: X-Gerrit-Commit: d7af928fede84afb9bc7479dd42fdfb5c63f9738 In-Reply-To: References: Reply-To: zoram@cloudera.com, impala-cr@cloudera.com, marcelk@gmail.com, zoram@cloudera.com, reviews@impala.incubator.apache.org, mjacobs@apache.org, dhecht@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="ZDUw3B70Ot8="; charset=UTF-8 archived-at: Fri, 22 Sep 2017 06:25:26 -0000 --ZDUw3B70Ot8= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Matthew Jacobs, Dan Hecht, I'd like you to reexamine a change=2E Pl= ease visit http://gerrit=2Ecloudera=2Eorg:8080/8084 to look at the ne= w patch set (#5)=2E Change subject: IMPALA-5599: Fix for mis-use of Timest= ampValue =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E IMPA= LA-5599: Fix for mis-use of TimestampValue The TimestampValue class is bei= ng used for non-database purposes in many places, such as in log messages= =2E This change proposes to introduce APIs to convert Unix timetamps into = the corresponding date-time strings=2E We provide a series of functions for= different input time units, and also give the user control over the precis= ion of the output date-time string=2E APIs are provided to format in UTC an= d local time zones=2E The new APIs can be used to replace (or instead of) T= imestampValue::ToString() in those places where Unix timestamps are being c= onverted to strings for printing=2E The current commit implements the APIs= and replaces calls to TimestampValue::ToString() in be/src/service=2E A n= ew unit test, time-test, has been added to the back-end tests=2E Other use= s of TimestampValue in be/src/service, such as to track start and end times= of queries, etc=2E, will be analyzed and changed as appropriate in a follo= w-up commit=2E Change-Id: I9b0ae06f6d94968c87a199625aa3332b26988142 --- M = be/src/service/impala-server=2Ecc M be/src/util/CMakeLists=2Etxt A be/src/u= til/time-test=2Ecc M be/src/util/time=2Ecc M be/src/util/time=2Eh 5 files c= hanged, 284 insertions(+), 13 deletions(-) git pull ssh://gerrit=2Eclou= dera=2Eorg:29418/Impala-ASF refs/changes/84/8084/5 -- To view, visit http:= //gerrit=2Ecloudera=2Eorg:8080/8084 To unsubscribe, visit http://gerrit=2Ec= loudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: mast= er Gerrit-MessageType: newpatchset Gerrit-Change-Id: I9b0ae06f6d94968c87a19= 9625aa3332b26988142 Gerrit-Change-Number: 8084 Gerrit-PatchSet: 5 Gerrit-Ow= ner: Zoram Thanga Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Matthew Jacobs Ger= rit-Reviewer: Zoram Thanga --ZDUw3B70Ot8=--