[ https://issues.apache.org/jira/browse/HIVE-6560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14062960#comment-14062960 ]
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/12655887/HIVE-6560.1.patch {color:red}ERROR:{color} -1 due to 11 failed/errored test(s), 5735 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_udf_binary 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.TestHCatLoader.testReadDataPrimitiveTypes org.apache.hive.jdbc.miniHS2.TestHiveServer2.testConnection {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/801/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-Build/801/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-Build-801/ 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: 11 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12655887 > 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 > > > 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)