MCPcopy Create free account
hub / github.com/apache/datafusion / new_generic_from_binary_op

Function new_generic_from_binary_op

datafusion/expr-common/src/statistics.rs:804–815  ·  view source on GitHub ↗
(
    op: &Operator,
    left: &Distribution,
    right: &Distribution,
)

Source from the content-addressed store, hash-verified

802 note = "Part of the unused Statistics V2 framework; see https://github.com/apache/datafusion/pull/22071"
803)]
804pub fn new_generic_from_binary_op(
805 op: &Operator,
806 left: &Distribution,
807 right: &Distribution,
808) -> Result<Distribution> {
809 Distribution::new_generic(
810 compute_mean(op, left, right)?,
811 compute_median(op, left, right)?,
812 compute_variance(op, left, right)?,
813 apply_operator(op, &left.range()?, &right.range()?)?,
814 )
815}
816
817/// Computes the mean value for the result of the given binary operation on
818/// two unknown quantities represented by their [`Distribution`] objects.

Callers 1

evaluate_statisticsMethod · 0.85

Calls 5

compute_meanFunction · 0.85
compute_medianFunction · 0.85
compute_varianceFunction · 0.85
apply_operatorFunction · 0.85
rangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…