Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vortex-layout/src/layouts/chunked/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: Copyright the Vortex contributors

use std::collections::BTreeSet;
use std::future;
use std::ops::Range;
use std::sync::Arc;

Expand All @@ -11,6 +12,7 @@ use futures::future::BoxFuture;
use futures::stream::FuturesOrdered;
use itertools::Itertools;
use vortex_array::ArrayRef;
use vortex_array::Canonical;
use vortex_array::IntoArray;
use vortex_array::MaskFuture;
use vortex_array::arrays::ChunkedArray;
Expand Down Expand Up @@ -293,9 +295,7 @@ impl LayoutReader for ChunkedReader {
) -> VortexResult<BoxFuture<'static, VortexResult<ArrayRef>>> {
let dtype = expr.return_dtype(self.dtype())?;
if row_range.is_empty() {
return Ok(
async move { Ok(ChunkedArray::try_new(vec![], dtype)?.into_array()) }.boxed(),
);
return Ok(future::ready(Ok(Canonical::empty(&dtype).into_array())).boxed());
}

let mut chunk_evals = vec![];
Expand Down
Loading