Skip to content

Commit 4b8d709

Browse files
committed
sorted
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 967066b commit 4b8d709

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

vortex-layout/src/layouts/zoned/writer.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::sync::Arc;
77

88
use async_trait::async_trait;
99
use futures::StreamExt as _;
10+
use itertools::Itertools;
1011
use parking_lot::Mutex;
1112
use vortex_array::ArrayContext;
1213
use vortex_array::IntoArray;
@@ -93,7 +94,14 @@ impl LayoutStrategy for ZonedStrategy {
9394
"ZonedStrategy requires block_size > 0 when writing"
9495
);
9596

96-
let stats = Arc::clone(&self.options.stats);
97+
let stats: Arc<[Stat]> = self
98+
.options
99+
.stats
100+
.as_ref()
101+
.iter()
102+
.cloned()
103+
.sorted_unstable()
104+
.collect();
97105
let session = session.clone();
98106
let compute_session = session.clone();
99107
let handle = session.handle();

0 commit comments

Comments
 (0)