hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-6560) varchar and char types cannot be cast to binary
Date Wed, 16 Jul 2014 17:10:06 GMT

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

Hive QA commented on HIVE-6560:
-------------------------------



{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/12656059/HIVE-6560.2.patch

{color:red}ERROR:{color} -1 due to 10 failed/errored test(s), 5735 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_dynpart_sort_optimization
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_temp_table
org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_ql_rewrite_gbtoidx
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_1
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_2
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_3
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_4
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_5
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_invalid_cast_to_binary_6
org.apache.hive.hcatalog.pig.TestOrcHCatLoader.testReadDataPrimitiveTypes
{noformat}

Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/811/testReport
Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/811/console
Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-Build-811/

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: 10 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12656059

> varchar and char types cannot be cast to binary
> -----------------------------------------------
>
>                 Key: HIVE-6560
>                 URL: https://issues.apache.org/jira/browse/HIVE-6560
>             Project: Hive
>          Issue Type: Bug
>          Components: Types, UDF
>    Affects Versions: 0.12.0, 0.13.0, 0.13.1
>            Reporter: Xuefu Zhang
>            Assignee: Chao
>         Attachments: HIVE-6560.1.patch, HIVE-6560.2.patch
>
>
> GenericUDFToBinary can convert string to binary. VARCHAR and CHAR are substitutable with
string. Thus, GenericUDFToBinary should also be able to convert VARCHAR and CHAR to binary.
However,
> {code}
> hive> select binary(cast('abc' as varchar(5)) from decimal_udf limit 1;
> FAILED: ParseException line 1:40 missing ) at 'from' near '<EOF>'
> hive> select binary(cast('abc' as varchar(5))) from decimal_udf limit 1;
> FAILED: SemanticException Line 0:-1 Wrong arguments ''abc'': Only string or binary data
can be cast into binary data types.
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message