You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2014/07/11 04:59:05 UTC
[jira] [Commented] (HIVE-7279) UDF format_number() does not work on
DECIMAL types
[ https://issues.apache.org/jira/browse/HIVE-7279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14058280#comment-14058280 ]
Hive QA commented on HIVE-7279:
-------------------------------
{color:red}Overall{color}: -1 at least one tests failed
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12655101/HIVE-7279.1.patch
{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 5718 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_udf_format_number_wrong5
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_udf_format_number_wrong7
{noformat}
Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/740/testReport
Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/740/console
Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-Build-740/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12655101
> UDF format_number() does not work on DECIMAL types
> --------------------------------------------------
>
> Key: HIVE-7279
> URL: https://issues.apache.org/jira/browse/HIVE-7279
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Reporter: Szehon Ho
> Assignee: Wilbur Yang
> Priority: Minor
> Attachments: HIVE-7279.1.patch
>
>
> I believe UDF format should work on decimal types.
> {noformat}
> hive> select format_number(decimal_1.u,1) from decimal_1;
> FAILED: SemanticException [Error 10016]: Line 1:21 Argument type mismatch 'u': Argument 1 of function FORMAT_NUMBER must be "tinyint" or "smallint" or "int" or "bigint" or "double" or "float", but "decimal(5,0)" was found.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)