liyafan82 opened a new pull request #2356:
URL: https://github.com/apache/calcite/pull/2356


   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);
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to