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

Danny Chen resolved CALCITE-3520.
---------------------------------
    Fix Version/s: 1.22.0
       Resolution: Fixed

Fixed in 
[d951844|https://github.com/apache/calcite/commit/d951844c464d41fe435977f12df975352d71226f],
 thanks for your PR, [~donnyzone] !

> Type cast from primitive to box is not correct
> ----------------------------------------------
>
>                 Key: CALCITE-3520
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3520
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.21.0
>            Reporter: Feng Zhu
>            Assignee: Feng Zhu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> RexToLixTranslator provides type cast function as public interface to users.
>  However, some issues from primitive to box are concealed by current codegen 
> framework.
> {code:java}
> int x = ...
> byte y = (byte)x;
> // RexToLixTranslator.convert(y, Byte.class)
> Byte.valueOf(y) // Compile error{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to