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

RexLiteral can produce wrong digest for some user defined types

    XMLWordPrintableJSON

Details

    Description

      We find weird literals for some user defined non-nullable types. Some investigation shows that the problem lies in the RexLiteral#toJavaString method.

      In particular, it checks the type string suffix with an 8-character string:

      if (!fullTypeString.endsWith("NOT NULL")) {
      

      However, it trims the last 9 characters from the end of the string:

      sb.append(fullTypeString, 0, fullTypeString.length() - 9);
      

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 50m
                  2h 50m