You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2021/11/15 04:33:00 UTC
[jira] [Commented] (CALCITE-4888) Unexpected `RexNode` when call `RelBuilder.in` to create an `IN` predicate with a list of varchar literals which have different length
[ https://issues.apache.org/jira/browse/CALCITE-4888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17443548#comment-17443548 ]
Julian Hyde commented on CALCITE-4888:
--------------------------------------
Are you getting an error "Unexpected RexNode"? Or are you getting a RexNode that you didn't expect? If the latter, maybe Calcite is doing the right thing, and the only problem is that this is not what you expect.
This is probably a duplicate of CALCITE-4590 (or several other issues).
> Unexpected `RexNode` when call `RelBuilder.in` to create an `IN` predicate with a list of varchar literals which have different length
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-4888
> URL: https://issues.apache.org/jira/browse/CALCITE-4888
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Jing Zhang
> Priority: Major
>
> when call `RelBuilder.in` to create an `IN` predicate with a list of varchar literals which have different length, generated `RexNode` are expected.
> for example, ranges parameters are `b.literal("CLERK")` and `b.literal("A")`
> Generated `RexNode` seems to be unexpected because it would cast 'A' to char(5).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)