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

Function merge_file_statistics

datafusion/datasource/src/statistics.rs:348–359  ·  view source on GitHub ↗
(
    limit_num_rows: &mut Precision<usize>,
    summary_statistics: &mut Statistics,
    file_stats: &Statistics,
    collect_stats: bool,
)

Source from the content-addressed store, hash-verified

346}
347
348fn merge_file_statistics(
349 limit_num_rows: &mut Precision<usize>,
350 summary_statistics: &mut Statistics,
351 file_stats: &Statistics,
352 collect_stats: bool,
353) {
354 *limit_num_rows = limit_num_rows.add(&file_stats.num_rows);
355
356 if collect_stats {
357 merge_summary_statistics(summary_statistics, file_stats);
358 }
359}
360
361/// Get all files as well as the file level summary statistics (no statistic for partition columns).
362/// If the optional `limit` is provided, includes only sufficient files. Needed to read up to

Callers 1

Calls 2

merge_summary_statisticsFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…