Expand description
Use statistics to optimize physical planning.
Currently, this module houses code to sort file groups if they are non-overlapping with
respect to the required sort order. See MinMaxStatistics
Structs§
- MinMax
Statistics 🔒 - A normalized representation of file min/max statistics that allows for efficient sorting & comparison.
The min/max values are ordered by
Self::sort_order. Furthermore, any columns that are reversed in the sort order have their min/max values swapped.
Functions§
- add_
row_ stats Deprecated - compute_
all_ files_ statistics - Computes statistics for all files across multiple file groups.
- compute_
file_ group_ statistics - Computes the summary statistics for a group of files(
FileGrouplevel’s statistics). - get_
statistics_ with_ limit Deprecated - Get all files as well as the file level summary statistics (no statistic for partition columns).
If the optional
limitis provided, includes only sufficient files. Needed to read up tolimitnumber of rows.collect_statsis passed down from the configuration parameter onListingTable. If it is false we only construct bare statistics and skip a potentially expensive call tomultiunzipfor constructing file level summary statistics. - sort_
columns_ 🔒from_ physical_ sort_ exprs