Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3520

Type cast from primitive to box is not correct

    XMLWordPrintableJSON

Details

    Description

      RexToLixTranslator provides type cast function as public interface to users.
      However, some issues from primitive to box are concealed by current codegen framework.

      int x = ...
      byte y = (byte)x;
      
      // RexToLixTranslator.convert(y, Byte.class)
      Byte.valueOf(y) // Compile error

      Attachments

        Issue Links

          Activity

            People

              donnyzone Feng Zhu
              donnyzone Feng Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m