Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
For example, return types of AVG() is the input type. So, if the input is INT/BIGINT type, AVG() is always truncated. Depending on the database, some database follow this behavior while others (e.g. Oracle/MySQL/etc.) do not and return floating point values for AVG().
Similar for other functions mentioned here.
Attachments
Issue Links
- is duplicated by
-
CALCITE-5604 Avg function should infer correct data type
- Resolved
- relates to
-
CALCITE-2030 Aggregates executed against PostgreSQL DECIMAL columns perform lossy casts
- Open