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

Function seed_summary_statistics

datafusion/datasource/src/statistics.rs:287–302  ·  view source on GitHub ↗
(summary_statistics: &mut Statistics, file_stats: &Statistics)

Source from the content-addressed store, hash-verified

285}
286
287fn seed_summary_statistics(summary_statistics: &mut Statistics, file_stats: &Statistics) {
288 summary_statistics.num_rows = file_stats.num_rows;
289 summary_statistics.total_byte_size = file_stats.total_byte_size;
290
291 for (summary_col_stats, file_col_stats) in summary_statistics
292 .column_statistics
293 .iter_mut()
294 .zip(file_stats.column_statistics.iter())
295 {
296 summary_col_stats.null_count = file_col_stats.null_count;
297 summary_col_stats.max_value = file_col_stats.max_value.clone();
298 summary_col_stats.min_value = file_col_stats.min_value.clone();
299 summary_col_stats.sum_value = file_col_stats.sum_value.cast_to_sum_type();
300 summary_col_stats.byte_size = file_col_stats.byte_size;
301 }
302}
303
304fn merge_summary_statistics(
305 summary_statistics: &mut Statistics,

Callers 1

Calls 3

cast_to_sum_typeMethod · 0.80
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…