Skip to content

Commit f128328

Browse files
committed
eliminate some unnecessary tmp Vecs.
1 parent c09912f commit f128328

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ macro_rules! get_statistics {
393393
})
394394
},
395395
DataType::Binary => Ok(Arc::new(BinaryArray::from_iter(
396-
[<$stat_type_prefix ByteArrayStatsIterator>]::new($iterator).map(|x| x.map(|x| x.to_vec())),
396+
[<$stat_type_prefix ByteArrayStatsIterator>]::new($iterator)
397397
))),
398398
DataType::LargeBinary => Ok(Arc::new(LargeBinaryArray::from_iter(
399-
[<$stat_type_prefix ByteArrayStatsIterator>]::new($iterator).map(|x| x.map(|x|x.to_vec())),
399+
[<$stat_type_prefix ByteArrayStatsIterator>]::new($iterator)
400400
))),
401401
DataType::Utf8 => {
402402
let iterator = [<$stat_type_prefix ByteArrayStatsIterator>]::new($iterator);

0 commit comments

Comments
 (0)