Skip to main content

Module derive

Module derive 

Source
Expand description

Session-registered derivations of a scalar function’s result statistics from the statistics of its inputs.

Stats rewrite rules bound sub-expressions of a predicate, such as the min and max of cast(col) in cast(col) > 5. Statistics are stored only for columns, so a statistic of cast(col) must be expressed in terms of the statistics of col. A StatDerivation registered for a scalar function says how.

Traits§

StatDerivation
Expresses the statistics of a scalar function’s result in terms of the statistics of its inputs.

Functions§

stat_expr
Expresses the statistic aggregate_fn of expr as an expression over the statistics that can be read for the current scope.

Type Aliases§

StatDerivationRef
Shared reference to a statistic derivation.