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

Ashutosh Chauhan commented on HIVE-11251:
-----------------------------------------

This indicates to me that constant literal of length 0 (empty string) of type 
varchar/char will throw an error. If so, its a bug in Hive which needs to be 
fixed independently. Can you confirm that? Not sure, but following query may 
repro that 
{code}
select (cast ('') as varchar) from src;
{code}



> CBO (Calcite Return Path): Extending ExprNodeConverter to consider additional 
> types
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-11251
>                 URL: https://issues.apache.org/jira/browse/HIVE-11251
>             Project: Hive
>          Issue Type: Sub-task
>          Components: CBO
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>         Attachments: HIVE-11251.patch
>
>
> Some types are not considered currently in ExprNodeConverter e.g. 
> INTERVAL_YEAR_MONTH or INTERVAL_DAY_TIME. To reproduce it, we can run 
> interval_udf.q with the return path on.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to