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 023C310891 for ; Wed, 17 Jul 2013 17:31:57 +0000 (UTC) Received: (qmail 19954 invoked by uid 500); 17 Jul 2013 17:31:56 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 17638 invoked by uid 500); 17 Jul 2013 17:31: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 16583 invoked by uid 500); 17 Jul 2013 17:31:47 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 16556 invoked by uid 99); 17 Jul 2013 17:31:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 17:31:47 +0000 Date: Wed, 17 Jul 2013 17:31:47 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4873) Sort candidate functions in case of UDFArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xuefu Zhang updated HIVE-4873: ------------------------------ Attachment: HIVE-4873.patch > Sort candidate functions in case of UDFArgumentException > -------------------------------------------------------- > > Key: HIVE-4873 > URL: https://issues.apache.org/jira/browse/HIVE-4873 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Priority: Minor > Attachments: HIVE-4873.patch > > > When Hive provides a list of candidate functions in case of UDFArgumentException such as for the following query: > {code} > create table tbl (a binary); > select cast (a as tinyint) from tbl limit 1; > {code} > the list is not sorted, so the output is not deterministic. Also, we have many test cases depending on the ordering. Thus, it's good to sort the list before emitting it. > This should fixes quite a few test case failures when Hive runs in JDK7. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira