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 C6B79200D09 for ; Wed, 23 Aug 2017 08:24:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C3C90166958; Wed, 23 Aug 2017 06:24:16 +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 152821669B4 for ; Wed, 23 Aug 2017 08:24:15 +0200 (CEST) Received: (qmail 16752 invoked by uid 500); 23 Aug 2017 06:24:15 -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 16702 invoked by uid 99); 23 Aug 2017 06:24:15 -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, 23 Aug 2017 06:24:14 +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 7452718072F for ; Wed, 23 Aug 2017 06:24:14 +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 bdSpPgOhDdgX for ; Wed, 23 Aug 2017 06:24:13 +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 64ECE5F367 for ; Wed, 23 Aug 2017 06:24:13 +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 v7N6OCk1010914; Wed, 23 Aug 2017 06:24:13 GMT Message-Id: <201708230624.v7N6OCk1010914@ip-10-146-233-104.ec2.internal> Date: Wed, 23 Aug 2017 06:24:12 +0000 From: "Impala Public Jenkins (Code Review)" To: Tianyi Wang , impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: merged Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5573=3A_Add_decimal_codegen_in_text_scanner=0A?= X-Gerrit-Change-Id: Ia65820e969d59094dc92d912a5279fa90f6b179d X-Gerrit-ChangeURL: X-Gerrit-Commit: 679ebc1ac66e07edc0e81b34c8ed56a0a8aff0ca 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.7 archived-at: Wed, 23 Aug 2017 06:24:17 -0000 Impala Public Jenkins has submitted this change and it was merged. Change subject: IMPALA-5573: Add decimal codegen in text scanner ...................................................................... IMPALA-5573: Add decimal codegen in text scanner This patch adds decimal type codegen support in text scanner. Currently codegen would be disabled if there is a decimal column. With this patch StringParser::StringToDecimal will be called in generated code. A new file util/string-parser.cc is created and linked into libUtil. This file contains proxy functions to StringToDecimal in ordered to keep StringToDecimal out of LLVM IR. In a benchmark query: > select l_quantity, l_extendedprice, l_discount, l_tax from biglineitem where l_quantity > 100.0; where biglineitem is tpch.lineitem repeated 6 times, the codegen version is 19% faster than non-codgen version in scanning, and 8% faster in query time. Codegen time in this simple case is 69ms. Simple performance tests show that putting the parser in libUtil instead of impala-sse.bc would reduce codegen time by 2/3 in cases where only one decimal column is parsed while the scanning time is nearly the same. Change-Id: Ia65820e969d59094dc92d912a5279fa90f6b179d Reviewed-on: http://gerrit.cloudera.org:8080/7683 Reviewed-by: Tim Armstrong Tested-by: Impala Public Jenkins --- M be/src/codegen/gen_ir_descriptions.py M be/src/exec/hdfs-scanner-ir.cc M be/src/exec/hdfs-scanner.cc M be/src/exec/text-converter.cc M be/src/util/CMakeLists.txt A be/src/util/string-parser.cc M be/src/util/string-parser.h 7 files changed, 136 insertions(+), 28 deletions(-) Approvals: Impala Public Jenkins: Verified Tim Armstrong: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/7683 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia65820e969d59094dc92d912a5279fa90f6b179d Gerrit-PatchSet: 11 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tianyi Wang Gerrit-Reviewer: Impala Public Jenkins Gerrit-Reviewer: Tianyi Wang Gerrit-Reviewer: Tim Armstrong