Module analysis

Module analysis 

Source
Expand description

Interval and selectivity in AnalysisContext

Structs§

AnalysisContext
The shared context used during the analysis of an expression. Includes the boundaries for all known columns.
ExprBoundaries
Represents the boundaries (e.g. min and max values) of a particular column

Functions§

analyze
Attempts to refine column boundaries and compute a selectivity value.
calculate_selectivity 🔒
This function calculates the filter predicate’s selectivity by comparing the initial and pruned column boundaries. Selectivity is defined as the ratio of rows in a table that satisfy the filter’s predicate.
shrink_boundaries 🔒
If the PropagationResult indicates success, this function calculates the selectivity value by comparing the initial and final column boundaries. Following this, it constructs and returns a new AnalysisContext with the updated parameters.