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 8619A200D11 for ; Mon, 2 Oct 2017 23:51:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 84B311609EF; Mon, 2 Oct 2017 21:51:13 +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 C90621609C0 for ; Mon, 2 Oct 2017 23:51:12 +0200 (CEST) Received: (qmail 31332 invoked by uid 500); 2 Oct 2017 21:51:11 -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 31320 invoked by uid 99); 2 Oct 2017 21:51:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 21:51:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 632FE1A58B2 for ; Mon, 2 Oct 2017 21:51:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id I1lo1URoO74j for ; Mon, 2 Oct 2017 21:51:07 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B11045F238 for ; Mon, 2 Oct 2017 21:51:07 +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 v92Lp5Io017098; Mon, 2 Oct 2017 21:51:05 GMT Message-Id: <201710022151.v92Lp5Io017098@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 9 Date: Mon, 2 Oct 2017 21:51:05 +0000 From: "Dan Hecht (Code Review)" To: Csaba Ringhofer , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Lars Volker X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5664=3A_Unix_time_to_timestamp_conversions_may_crash_Impala=0A?= X-Gerrit-Change-Id: I77b2f6284d3a597f57e61c17a67c959eff9e38ff X-Gerrit-Change-Number: 7954 X-Gerrit-ChangeURL: X-Gerrit-Commit: 5ff6fe28f66d316d3cbcfe0327896a8ca6288ac7 In-Reply-To: References: X-Gerrit-Comment-Date: Mon, 2 Oct 2017 21:51:05 +0000 Reply-To: dhecht@cloudera.com, impala-cr@cloudera.com, lv@cloudera.com, marcelk@gmail.com, csringhofer@cloudera.com, reviews@impala.incubator.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="tFJUy5K0cqM="; charset=UTF-8 archived-at: Mon, 02 Oct 2017 21:51:13 -0000 --tFJUy5K0cqM= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Hecht has posted comments on this change=2E ( http://gerrit=2Ecloudera= =2Eorg:8080/7954 ) Change subject: IMPALA-5664: Unix time to timestamp con= versions may crash Impala =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 Patch Set 9: (4 comments) http://gerrit=2Ecloudera=2Eorg:8= 080/#/c/7954/9/be/src/exprs/timestamp-functions-ir=2Ecc File be/src/exprs/t= imestamp-functions-ir=2Ecc: http://gerrit=2Ecloudera=2Eorg:8080/#/c/7954/9= /be/src/exprs/timestamp-functions-ir=2Ecc@136 PS9, Line 136: if(!tv=2EHasDa= teAndTime()){ here an elsewhere - please follow the style used by the rest = of impala=2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/7954/9/be/src/exprs/= timestamp-functions-ir=2Ecc@137 PS9, Line 137: UnixMicrosToUtcTimestamp is = that meaningful to the user? http://gerrit=2Ecloudera=2Eorg:8080/#/c/7954= /9/be/src/exprs/timestamp-functions-ir=2Ecc@139 PS9, Line 139: } are the = ones you added the only places where your new validation might produce a !H= asDateAndTime() TimestampValue? http://gerrit=2Ecloudera=2Eorg:8080/#/c/7= 954/9/be/src/exprs/timestamp-functions-ir=2Ecc@751 PS9, Line 751: datet= ime=2Edate()=2Eyear(); it still seems like this is doing the same validatio= n=2E should we remove this an instead do the result_value=2EHasDateAndTime(= ) check here? Or is this really a different case? -- To view, visit htt= p://gerrit=2Ecloudera=2Eorg:8080/7954 To unsubscribe, visit http://gerrit= =2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: = master Gerrit-MessageType: comment Gerrit-Change-Id: I77b2f6284d3a597f57e61= c17a67c959eff9e38ff Gerrit-Change-Number: 7954 Gerrit-PatchSet: 9 Gerrit-Ow= ner: Csaba Ringhofer Gerrit-Reviewer: Csaba Ri= nghofer Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Lars Volker Gerrit-Commen= t-Date: Mon, 02 Oct 2017 21:51:05 +0000 Gerrit-HasComments: Yes --tFJUy5K0cqM=--