(summary_statistics: &mut Statistics, file_stats: &Statistics)
| 285 | } |
| 286 | |
| 287 | fn 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 | |
| 304 | fn merge_summary_statistics( |
| 305 | summary_statistics: &mut Statistics, |
no test coverage detected
searching dependent graphs…