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

Feng Zhu updated CALCITE-3520:
------------------------------
    Description: 
RexToLixTranslator provides type cast function as public interface to users.
 However, some issues from primitive to box are covered by current codegen 
framework.
{code:java}
int x = ...
byte y = (byte)x;
Byte.valueOf(y) // Compile error{code}

  was:
RexToLixTranslator provides type cast function as public interface to users.
However, some issues from primitive to box are covered by current codegen 
framework.
{code:java}
int x = ...
byte y = (byte)y
Byte.valueOf(y) // Compile error{code}


> 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
>
> RexToLixTranslator provides type cast function as public interface to users.
>  However, some issues from primitive to box are covered by current codegen 
> framework.
> {code:java}
> int x = ...
> byte y = (byte)x;
> Byte.valueOf(y) // Compile error{code}



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

Reply via email to