Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.11.0
-
None
Description
Similar to CALCITE-1578, but for GroupBy queries. Limit is applied per granularity unit, not globally for the query.
Currently, the following SQL query infers granularity 'day' for Druid groupBy and pushes the limit, which is incorrect.
SELECT i_brand_id, floor_day(`__time`), max(ss_quantity), sum(ss_wholesale_cost) as s FROM store_sales_sold_time_subset GROUP BY i_brand_id, floor_day(`__time`) ORDER BY s LIMIT 10;
Attachments
Issue Links
- relates to
-
HIVE-15637 Hive/Druid integration: wrong semantics of groupBy query limit with granularity
- Closed