@@ -506,7 +506,7 @@ pub fn compute_file_group_statistics(
506
506
///
507
507
/// # Parameters
508
508
/// * `file_groups` - Vector of file groups to process
509
- /// * `file_schema ` - Schema of the files
509
+ /// * `table_schema ` - Schema of the table
510
510
/// * `collect_stats` - Whether to collect statistics
511
511
/// * `inexact_stats` - Whether to mark the resulting statistics as inexact
512
512
///
@@ -516,7 +516,7 @@ pub fn compute_file_group_statistics(
516
516
/// * The summary statistics across all file groups, aka all files summary statistics
517
517
pub fn compute_all_files_statistics (
518
518
file_groups : Vec < FileGroup > ,
519
- file_schema : SchemaRef ,
519
+ table_schema : SchemaRef ,
520
520
collect_stats : bool ,
521
521
inexact_stats : bool ,
522
522
) -> Result < ( Vec < FileGroup > , Statistics ) > {
@@ -526,16 +526,17 @@ pub fn compute_all_files_statistics(
526
526
for file_group in file_groups {
527
527
file_groups_with_stats. push ( compute_file_group_statistics (
528
528
file_group,
529
- Arc :: clone ( & file_schema ) ,
529
+ Arc :: clone ( & table_schema ) ,
530
530
collect_stats,
531
531
) ?) ;
532
532
}
533
533
534
534
// Then summary statistics across all file groups
535
- let mut statistics =
536
- compute_summary_statistics ( & file_groups_with_stats, & file_schema, |file_group| {
537
- file_group. statistics ( )
538
- } ) ;
535
+ let mut statistics = compute_summary_statistics (
536
+ & file_groups_with_stats,
537
+ & table_schema,
538
+ |file_group| file_group. statistics ( ) ,
539
+ ) ;
539
540
540
541
if inexact_stats {
541
542
statistics = statistics. to_inexact ( )
0 commit comments