sandeshkr419 opened a new issue, #23815:
URL: https://github.com/apache/datafusion/issues/23815

   ### Is your feature request related to a problem or challenge?
   
   `approx_distinct` / `HyperLogLog` hardcodes precision at `p=14` (16384 
registers, 16 KiB per sketch). There is currently no way for callers to trade 
accuracy for lower memory or smaller partial-aggregate state on the wire.
   
   
   
   
   
   ### Describe the solution you'd like
   
   Request is to add `HyperLogLog::with_precision(p)` and 
`ApproxDistinct::with_hll_precision(p)` so that integrators can request a 
smaller sketch (e.g. p=12 → 4 KiB, ~1.6% error) without changing the default 
behaviour.
   
   **Note**: This does not affects non-approx paths which use bitmap for exact 
distinct count.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to