mihaibudiu commented on code in PR #4193:
URL: https://github.com/apache/calcite/pull/4193#discussion_r1964884456
##########
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeSystemImpl.java:
##########
@@ -363,7 +363,12 @@ && getDefaultPrecision(typeName) !=
RelDataType.PRECISION_NOT_SPECIFIED) {
@Override public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType) {
- return argumentType;
+ if (SqlTypeName.INT_TYPES.contains(argumentType.getSqlTypeName())) {
Review Comment:
the type system is actually pluggable. See
https://github.com/feldera/feldera/issues/3588 for the right way to do this. We
should not change RelDataTypeSystemImpl.
--
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]