Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Add SQL syntax to allow approximate LIMIT and distinct-COUNT. These will set the properties specified in CALCITE-1587. By default the properties are false, so the query will return exact results.
Exact syntax is to be decided. It could be at the top of the query (therefore affecting every LIMIT or aggregate in the query) or it could be more localized (e.g. COUNT(DISTINCT customerId) APPROXIMATE (WITHIN 10 PERCENT)).
Attachments
Issue Links
- is related to
-
CALCITE-2035 Add APPROX_COUNT_DISTINCT aggregate function
- Closed
-
PHOENIX-3390 Custom UDAF for HyperLogLogPlus
- In Progress
-
PHOENIX-418 Support approximate COUNT DISTINCT
- Resolved
- relates to
-
CALCITE-1670 Count distinct on druid is translated to Cardinality aggregator which is approximate
- Open
-
CALCITE-1587 Druid adapter: topN returns approximate results
- Closed