Skip to content

Commit eccd65d

Browse files
committed
1 parent 7b91efa commit eccd65d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎vortex-file/src/tests.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,9 @@ async fn file_sum_is_absent_when_a_chunk_overflows() -> VortexResult<()> {
21542154
assert!(footer_stats.stats_sets()[0].get(Stat::Sum).is_absent());
21552155

21562156
let file = SESSION.open_options().open_buffer(buf)?;
2157-
let file_stats = file.file_stats().vortex_expect("file statistics were written");
2157+
let file_stats = file
2158+
.file_stats()
2159+
.vortex_expect("file statistics were written");
21582160
assert!(file_stats.stats_sets()[0].get(Stat::Sum).is_absent());
21592161

21602162
Ok(())

‎vortex-layout/src/layouts/file_stats.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,10 @@ mod tests {
659659
let dtype = DType::Primitive(PType::I64, Nullability::Nullable);
660660
let mut acc = StatsAccumulator::new(&dtype, &[Stat::Sum], 12);
661661
for chunk in chunks {
662-
acc.push_chunk(&PrimitiveArray::from_option_iter(chunk).into_array(), &mut ctx)?;
662+
acc.push_chunk(
663+
&PrimitiveArray::from_option_iter(chunk).into_array(),
664+
&mut ctx,
665+
)?;
663666
}
664667

665668
let stats = acc.as_stats_set(&[Stat::Sum], &mut ctx)?;

0 commit comments

Comments
 (0)