You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2014/10/29 22:55:35 UTC
[jira] [Commented] (HIVE-8657) CBO: inputddl5, udf_reverse tests
fail
[ https://issues.apache.org/jira/browse/HIVE-8657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189084#comment-14189084 ]
Julian Hyde commented on HIVE-8657:
-----------------------------------
I suspect that the Hive-to-Calcite is generating a RexLiteral (possibly a SqlLiteral) for a character literal, and that that character literal contains Unicode (i.e. non-ASCII) characters. Fix might be to catch the exception and create the literal using unicode as the encoding.
Note that in a RexLiteral of type CHAR or VARCHAR, the value object must be of type NlsString, and that contains a Java string (in unicode as always), a java.nio.charset.Charset, and a SqlCollation.
It should be clearer what to do when we see the call-stack.
> CBO: inputddl5, udf_reverse tests fail
> --------------------------------------
>
> Key: HIVE-8657
> URL: https://issues.apache.org/jira/browse/HIVE-8657
> Project: Hive
> Issue Type: Sub-task
> Components: CBO
> Reporter: Sergey Shelukhin
> Fix For: 0.14.0
>
>
> Exception in Hive logs (I spent all of 20 seconds looking at this for now)
> {noformat}
> 2014-10-29 13:27:34,019 ERROR ql.Driver (SessionState.java:printError(825)) - FAILED: EigenbaseException Failed to encode '??' in character set 'ISO-8859-1'
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)