You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "JING ZHANG (Jira)" <ji...@apache.org> on 2021/11/15 02:16:00 UTC

[jira] [Updated] (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:all-tabpanel ]

JING ZHANG updated CALCITE-4888:
--------------------------------
    Description: 
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).

  was:
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 are `b.literal("CLERK")` and  `b.literal("A")`

Generated `RexNode` seems to be unexpected because it would cast 'A' to char(5).


> 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)