Skip to content

Commit

Permalink
Add sum statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Jan 10, 2025
1 parent fbf3188 commit 42ac6aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datafusion/core/src/datasource/statistics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ pub async fn get_statistics_with_limit(
for (index, file_column) in
file_stats.column_statistics.clone().into_iter().enumerate()
{
col_stats_set[index] = file_column;
col_stats_set[index].null_count = file_column.null_count;
col_stats_set[index].max_value = file_column.max_value;
col_stats_set[index].min_value = file_column.min_value;
col_stats_set[index].sum_value = file_column.sum_value;
}

// If the number of rows exceeds the limit, we can stop processing
Expand Down

0 comments on commit 42ac6aa

Please sign in to comment.