[ 
https://issues.apache.org/jira/browse/HIVE-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712671#comment-13712671
 ] 

Hudson commented on HIVE-4873:
------------------------------

FAILURE: Integrated in Hive-trunk-hadoop2-ptest #19 (See 
[https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/19/])
HIVE-4873 Sort candidate functions in case of UDFArgumentException (Xuefu Zhang 
via egc)

Submitted by:   Xuefu Zhang
Reviewed by:    Edward Capriolo (ecapriolo: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1504361)
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/UDFArgumentException.java
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_1.q.out
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_2.q.out
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_3.q.out
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_4.q.out
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_5.q.out
* 
/hive/trunk/ql/src/test/results/clientnegative/invalid_cast_from_binary_6.q.out
* /hive/trunk/ql/src/test/results/clientnegative/wrong_column_type.q.out
* /hive/trunk/ql/src/test/results/compiler/errors/invalid_function_param2.q.out

                
> 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
>    Affects Versions: 0.10.0, 0.11.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.12.0
>
>         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

Reply via email to