Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
For Terms Aggregation missing value has to have same type as group key:
select max(amount), date from orders group by date -- date column is of type date (in ES)
Currently single (text) key is used _MISSING_ which fails when grouping on non-string fields (eg. dates, numbers or booleans).
When using missing (value) query converter should consider field type.
This logic should be reviewed once we migrate to composite aggregations (available since 6.1 see PR26800)
Attachments
Issue Links
- Blocked
-
CALCITE-4896 GROUP BY might get wrong results under certain circumstances in Elasticsearch Adapter
-
- Open
-
- links to