Skip to content

Commit 90a5ea4

Browse files
committed
Fix test
1 parent be068d8 commit 90a5ea4

File tree

1 file changed

+4
-3
lines changed
  • datafusion/core/src/datasource/physical_plan/parquet

1 file changed

+4
-3
lines changed

datafusion/core/src/datasource/physical_plan/parquet/statistics.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,10 +874,11 @@ impl<'a> StatisticsConverter<'a> {
874874
where
875875
I: IntoIterator<Item = &'a RowGroupMetaData>,
876876
{
877-
let data_type = self.arrow_field.data_type();
878-
879877
let Some(parquet_index) = self.parquet_index else {
880-
return Ok(self.make_null_array(data_type, metadatas));
878+
let num_row_groups = metadatas.into_iter().count();
879+
return Ok(Arc::new(UInt64Array::from_iter(
880+
std::iter::repeat(None).take(num_row_groups),
881+
)));
881882
};
882883

883884
let null_counts = metadatas

0 commit comments

Comments
 (0)