[
https://issues.apache.org/jira/browse/HIVE-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14626672#comment-14626672
]
Jesus Camacho Rodriguez commented on HIVE-11251:
------------------------------------------------
[~ashutoshc], maybe you know more about this and you can help me. What I found
out is that the type length couldn't be 0, but the value itself could have a
length of 0 (empty string). If we throw an Exception, I think it will be a
regression in functionality when we use return path e.g. udf3.q can be used to
reproduce the problem.
A better option would be to change the lower bound for the var/varchar type
length to zero in Hive, but I don't know the implications of this?
What do you think?
> 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)