xuzifu666 commented on PR #4431:
URL: https://github.com/apache/calcite/pull/4431#issuecomment-3488906760

   > I expect that the type computed for the result will be inferred in a 
similar way as for CHAR/VARCHAR.
   
   I think this suggestion is fine. The current issue is that when processing 
such as  Chinese characters, a bug in the codegen prevents it from directly 
calculating the exact number of digits, while it works well for Latin 
characters. Considering other functions like ```SqlLibraryOperators.BASE64```, 
which also directly returns a varchar type without number of digits, if it's 
determined that a precise number of binary digits is required, then we may need 
to continue investigating this issue.


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to