mihaibudiu commented on code in PR #4411:
URL: https://github.com/apache/calcite/pull/4411#discussion_r2150583347
##########
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:
##########
@@ -1961,6 +1977,10 @@ private static Comparable zeroValue(RelDataType type) {
case SMALLINT:
case INTEGER:
case BIGINT:
+ case UTINYINT:
Review Comment:
This function returns a comparable value, and not a literal. There is no
promise that the type has literals.
I haven't checked whether this function is called elsewhere, perhaps the
change is not necessary, but it is certainly harmless.
--
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]