alamb commented on PR #16614:
URL: https://github.com/apache/datafusion/pull/16614#issuecomment-3021051955

   Thanks @cj-zhukov !
   
   I think it would be super helpful to make an example / test showing how to 
use this new distribution to estimate cardinality
   
   For example perhaps you could set up a SampledDistribition like
   ```
   [0, 10]: 100 samples
   [20,30]: 200 samples
   ```
   
   And then estimate the cardinality of a predicate like `x > 25`
   
   I would expect the estimate to be 1/3 (half of the 20-30 bucket and none of 
the 1-10 bucket)
   
   
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to