Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.12.0
-
None
Description
Currently, whether to use fractional or integer aggregations is based on following code (L699 in DruidQuery.java).
final boolean b = aggCall.getType().getSqlTypeName() == SqlTypeName.DOUBLE;
Since Hive might use other fractional types for the aggregation, we might end up using the wrong type of aggregation in Druid. We could extend the check as follows:
final boolean b = SqlTypeName.FRACTIONAL_TYPES.contains(aggCall.getType().getSqlTypeName());
Attachments
Issue Links
- is depended upon by
-
CALCITE-1657 Release Calcite 1.12.0
- Closed