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 CC1EA200C16 for ; Thu, 26 Jan 2017 00:25:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CA8E5160B5A; Wed, 25 Jan 2017 23:25:57 +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 20E92160B4E for ; Thu, 26 Jan 2017 00:25:56 +0100 (CET) Received: (qmail 34575 invoked by uid 500); 25 Jan 2017 23:25:56 -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 34564 invoked by uid 99); 25 Jan 2017 23:25:56 -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; Wed, 25 Jan 2017 23:25:56 +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 AA99C184907 for ; Wed, 25 Jan 2017 23:25:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[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 LxOO2FnmHMvF for ; Wed, 25 Jan 2017 23:25:55 +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 B33C55FC06 for ; Wed, 25 Jan 2017 23:25:54 +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 v0PNPmH0018038; Wed, 25 Jan 2017 23:25:48 GMT Message-Id: <201701252325.v0PNPmH0018038@ip-10-146-233-104.ec2.internal> Date: Wed, 25 Jan 2017 23:25:47 +0000 From: "Alex Behm (Code Review)" To: Jim Apple , Michael Ho , impala-cr@cloudera.com, reviews@impala.incubator.apache.org Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4055=3A_Speed_up_to_date=28=29_with_custom_implementation=2E=0A?= X-Gerrit-Change-Id: I5713b3e0c27b739aae597a6911cf3b2ddd01f822 X-Gerrit-ChangeURL: X-Gerrit-Commit: 560c24224f53b406e6a94a1e2b5c549015e9f4f5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Wed, 25 Jan 2017 23:25:58 -0000 Hello Jim Apple, Michael Ho, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/5791 to look at the new patch set (#5). Change subject: IMPALA-4055: Speed up to_date() with custom implementation. ...................................................................... IMPALA-4055: Speed up to_date() with custom implementation. Simple implementation of to_date() that avoids calling into boost for a speedup of 10x. Perf: I generated a synthetic Parquet table with 26437248 rows and a single timestamp column. I tested the response time of the following query before and after this change. set mt_dop=1; select count(*) from to_date_test where to_date(ts) = '2017-10-23'; Before: 38.1s After: 3.4s Testing: I locally ran expr-test.cc and expr_test.py. Change-Id: I5713b3e0c27b739aae597a6911cf3b2ddd01f822 --- M be/src/exprs/timestamp-functions-ir.cc M be/src/exprs/timestamp-functions.cc M be/src/exprs/timestamp-functions.h M tests/conftest.py 4 files changed, 25 insertions(+), 13 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/91/5791/5 -- To view, visit http://gerrit.cloudera.org:8080/5791 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I5713b3e0c27b739aae597a6911cf3b2ddd01f822 Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Alex Behm Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Michael Ho