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 2A2E210E86 for ; Sat, 4 Jan 2014 01:05:51 +0000 (UTC) Received: (qmail 51712 invoked by uid 500); 4 Jan 2014 01:05:50 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 51661 invoked by uid 500); 4 Jan 2014 01:05:50 -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 51652 invoked by uid 500); 4 Jan 2014 01:05:50 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 51649 invoked by uid 99); 4 Jan 2014 01:05:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jan 2014 01:05:50 +0000 Date: Sat, 4 Jan 2014 01:05:50 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-6140) trim udf is very slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thejas M Nair created HIVE-6140: ----------------------------------- Summary: trim udf is very slow Key: HIVE-6140 URL: https://issues.apache.org/jira/browse/HIVE-6140 Project: Hive Issue Type: Bug Components: UDF Reporter: Thejas M Nair Paraphrasing what was reported by [~cartershanklin] - I used the attached Perl script to generate 500 million two-character strings which always included a space. I loaded it using: create table letters (l string); load data local inpath '/home/sandbox/data.csv' overwrite into table letters; Then I ran this SQL script: select count(l) from letters where l = 'l '; select count(l) from letters where trim(l) = 'l'; First query = 170 seconds Second query = 514 seconds -- This message was sent by Atlassian JIRA (v6.1.5#6160)