File tree Expand file tree Collapse file tree
vortex-layout/src/layouts/chunked Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// SPDX-FileCopyrightText: Copyright the Vortex contributors
33
44use std:: collections:: BTreeSet ;
5+ use std:: future;
56use std:: ops:: Range ;
67use std:: sync:: Arc ;
78
@@ -11,6 +12,7 @@ use futures::future::BoxFuture;
1112use futures:: stream:: FuturesOrdered ;
1213use itertools:: Itertools ;
1314use vortex_array:: ArrayRef ;
15+ use vortex_array:: Canonical ;
1416use vortex_array:: IntoArray ;
1517use vortex_array:: MaskFuture ;
1618use vortex_array:: arrays:: ChunkedArray ;
@@ -293,9 +295,7 @@ impl LayoutReader for ChunkedReader {
293295 ) -> VortexResult < BoxFuture < ' static , VortexResult < ArrayRef > > > {
294296 let dtype = expr. return_dtype ( self . dtype ( ) ) ?;
295297 if row_range. is_empty ( ) {
296- return Ok (
297- async move { Ok ( ChunkedArray :: try_new ( vec ! [ ] , dtype) ?. into_array ( ) ) } . boxed ( ) ,
298- ) ;
298+ return Ok ( future:: ready ( Ok ( Canonical :: empty ( & dtype) . into_array ( ) ) ) . boxed ( ) ) ;
299299 }
300300
301301 let mut chunk_evals = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments