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

ASF GitHub Bot updated CALCITE-3520:
------------------------------------
    Labels: pull-request-available  (was: )

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