Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E36C7A7C for ; Mon, 12 Sep 2011 22:41:32 +0000 (UTC) Received: (qmail 21729 invoked by uid 500); 12 Sep 2011 22:41:32 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 21693 invoked by uid 500); 12 Sep 2011 22:41:32 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 21685 invoked by uid 500); 12 Sep 2011 22:41:32 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 21682 invoked by uid 99); 12 Sep 2011 22:41:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 22:41:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 22:41:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE5DA95292 for ; Mon, 12 Sep 2011 22:41:08 +0000 (UTC) Date: Mon, 12 Sep 2011 22:41:08 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <2061133767.19638.1315867268959.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1303478674.21982.1312152789868.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (HIVE-2327) UDFs should be made aware when their arguments are constants. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach reopened HIVE-2327: ---------------------------------- HIVE-1360 made it possible for UDFs to detect constant parameters, but it didn't update any of the regex UDFs to take advantage of this feature. > UDFs should be made aware when their arguments are constants. > ------------------------------------------------------------- > > Key: HIVE-2327 > URL: https://issues.apache.org/jira/browse/HIVE-2327 > Project: Hive > Issue Type: Improvement > Reporter: Adam Kramer > > There are a lot of UDFs which would show major performance differences if one assumes that some of its arguments are constant. > Consider, for example, any UDF that takes a regular expression as input: This can be complied once (fast) if it's a constant, or once per row (wicked slow) if it's not a constant. > Or, consider any UDF that reads from a file and/or takes a filename as input; it would have to re-read the whole file if the filename changes. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira