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 8F6D7200AE3 for ; Wed, 4 May 2016 10:54:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8B02B1601A5; Wed, 4 May 2016 08:54:24 +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 E4D37160A00 for ; Wed, 4 May 2016 10:54:23 +0200 (CEST) Received: (qmail 82447 invoked by uid 500); 4 May 2016 08:42:16 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 82422 invoked by uid 99); 4 May 2016 08:42:15 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 08:42:15 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EEE712C1F6E for ; Wed, 4 May 2016 08:42:12 +0000 (UTC) Date: Wed, 4 May 2016 08:42:12 +0000 (UTC) From: "Gopal V (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-13685) Vectorization: Date*ColScalar parses the scalar in every loop MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 May 2016 08:54:24 -0000 [ https://issues.apache.org/jira/browse/HIVE-13685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gopal V updated HIVE-13685: --------------------------- Assignee: Nita Dembla > Vectorization: Date*ColScalar parses the scalar in every loop > ------------------------------------------------------------- > > Key: HIVE-13685 > URL: https://issues.apache.org/jira/browse/HIVE-13685 > Project: Hive > Issue Type: Improvement > Components: Vectorization > Affects Versions: 2.1.0 > Reporter: Gopal V > Assignee: Nita Dembla > Attachments: HIVE-13685.WIP.patch > > > {code} > @Override > public void evaluate(VectorizedRowBatch batch) { > ... > switch (inputTypes[0]) { > ... > case STRING: > case CHAR: > case VARCHAR: > try { > baseDate = formatter.parse(new String(stringValue, "UTF-8")); > break; > {code} > This is parsing the constant scalar for every evaluate() call. > Parsing the constant in the initialize op will save thousands of expensive calls into Calendar operations. -- This message was sent by Atlassian JIRA (v6.3.4#6332)