This is an automated email from the ASF dual-hosted git repository.
xudong963 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 7c902def35 Use any instead of for_each (#15289)
7c902def35 is described below
commit 7c902def35601a003f91744ba2829eb451e792d7
Author: xudong.w <[email protected]>
AuthorDate: Sat Mar 22 01:02:40 2025 +0800
Use any instead of for_each (#15289)
---
datafusion/datasource-parquet/src/file_format.rs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/datafusion/datasource-parquet/src/file_format.rs
b/datafusion/datasource-parquet/src/file_format.rs
index 17fb400064..8a78407c64 100644
--- a/datafusion/datasource-parquet/src/file_format.rs
+++ b/datafusion/datasource-parquet/src/file_format.rs
@@ -839,9 +839,10 @@ pub fn statistics_from_parquet_meta_calc(
total_byte_size += row_group_meta.total_byte_size() as usize;
if !has_statistics {
- row_group_meta.columns().iter().for_each(|column| {
- has_statistics = column.statistics().is_some();
- });
+ has_statistics = row_group_meta
+ .columns()
+ .iter()
+ .any(|column| column.statistics().is_some());
}
}
statistics.num_rows = Precision::Exact(num_rows);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]