[ 
https://issues.apache.org/jira/browse/CALCITE-7287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mihai Budiu resolved CALCITE-7287.
----------------------------------
    Fix Version/s: 1.42.0
         Assignee: Yu Xu
       Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/49fa3edbb98e3f01fccc028c517e8abf78c1f49f]

Thank you [~xuzifu666] 

> In simplifyLike, the makeLiteral call does not preserve the RelDataType
> -----------------------------------------------------------------------
>
>                 Key: CALCITE-7287
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7287
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.41.0
>            Reporter: Steve Carlin
>            Assignee: Yu Xu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> In my Calcite code, I have a RexLiteral that is of type RelDataType.VARCHAR 
> (the SqlTypeName is always CHAR)
> However, this information is getting lost in the call here
> [https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/rex/RexSimplify.java#L527]
> The result of this simplification gives me a RelDataType.CHAR instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to