Skip to content

Commit 03cea8b

Browse files
authored
experiment: eagerly decode dict on read (#5229)
Signed-off-by: Andrew Duffy [email protected]
1 parent 7017027 commit 03cea8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vortex-layout/src/layouts/dict/reader.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::sync::{Arc, OnceLock};
88
use futures::future::BoxFuture;
99
use futures::{FutureExt, TryFutureExt, try_join};
1010
use vortex_array::compute::{MinMaxResult, min_max, take};
11-
use vortex_array::{ArrayRef, MaskFuture};
11+
use vortex_array::{Array, ArrayRef, IntoArray, MaskFuture};
1212
use vortex_dict::DictArray;
1313
use vortex_dtype::{DType, FieldMask};
1414
use vortex_error::{VortexError, VortexExpect, VortexResult};
@@ -76,6 +76,7 @@ impl DictReader {
7676
)
7777
.vortex_expect("must construct dict values array evaluation")
7878
.map_err(Arc::new)
79+
.map_ok(|arr| arr.to_canonical().into_array())
7980
.boxed()
8081
.shared()
8182
})

0 commit comments

Comments
 (0)