You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Pengcheng Xiong (JIRA)" <ji...@apache.org> on 2015/08/06 01:43:04 UTC
[jira] [Commented] (HIVE-11282) CBO (Calcite Return Path):
Inferring Hive type char/varchar of length zero which is not allowed
[ https://issues.apache.org/jira/browse/HIVE-11282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659205#comment-14659205 ]
Pengcheng Xiong commented on HIVE-11282:
----------------------------------------
Hi [~jcamachorodriguez] and [~ashutoshc], it seems that now we still have other problems after this patch (see HIVE-11436). Shall we just use String for both char and varchar? Thanks.
> CBO (Calcite Return Path): Inferring Hive type char/varchar of length zero which is not allowed
> -----------------------------------------------------------------------------------------------
>
> Key: HIVE-11282
> URL: https://issues.apache.org/jira/browse/HIVE-11282
> Project: Hive
> Issue Type: Sub-task
> Components: CBO
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Fix For: 2.0.0
>
> Attachments: HIVE-11282.patch
>
>
> When RT is on, we try to infer the Hive type from the Calcite type for the value '’ e.g. in udf3.q, and we end up with char (length=0) as a result. The min length of char/varchar in Hive is 1, thus an Exception is thrown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)