xiedeyantu commented on code in PR #4759:
URL: https://github.com/apache/calcite/pull/4759#discussion_r2714614358


##########
core/src/test/resources/sql/new-decorr.iq:
##########
@@ -169,4 +169,40 @@ EnumerableCalc(expr#0..7=[{inputs}], 
expr#8=[CAST($t7):INTEGER], expr#9=[10], ex
 !plan
 !}
 
+# # This case comes from scalar.iq [CALCITE-709]
+# Aggregate functions do not support type promotion, so a cast is added to 
pass the test.

Review Comment:
   Type promotion is intended to express that when column 'a' is 'int', the 
sum(a) type will be inferred as bigint in other databases, thus promoting the 
type and avoiding out-of-bounds errors.



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