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

   ### Is your feature request related to a problem or challenge?
   
   The new low-level framework to evaluate expressions in a probabilistic 
context (#14699) supports various distribution types, but it doesn't yet 
support sampled distributions represented by historgrams.
   
   ### Describe the solution you'd like
   
   We can add a `SampledDistribution` variant to `Distribution`, which will 
store a histogram. All summary statistics (mean, variance and others) will be 
derived from the histogram. When combining `SampledDistribution` objects with 
binary operations, the statistics framework will construct the resulting 
histogram from histograms of operands. For example, when `evaluate_statistics` 
is invoked on a `BinaryExpr` that *adds* two expressions whose `Distributions` 
are `SampledDistribution`s, the output histogram will be the convolution of the 
two histograms (due to the independence assumption in the framework).
   
   ### Describe alternatives you've considered
   
   N/A.
   
   ### 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: github-unsubscr...@datafusion.apache.org.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