Skip to content

Commit 97c1aa9

Browse files
committed
remove generic task
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 1ca3a34 commit 97c1aa9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

vortex-layout/src/scan/repeated_scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl RepeatedScan {
186186
pub(crate) fn execute(
187187
&self,
188188
row_range: Option<Range<u64>>,
189-
) -> VortexResult<Vec<TaskFuture<Option<ArrayRef>>>> {
189+
) -> VortexResult<Vec<TaskFuture>> {
190190
let ctx = self.task_context();
191191

192192
let mut limit = self.limit;

vortex-layout/src/scan/tasks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use vortex_scan::row_mask::RowMask;
1919
use crate::LayoutReader;
2020
use crate::scan::filter::FilterExpr;
2121

22-
pub type TaskFuture<T> = BoxFuture<'static, VortexResult<T>>;
22+
pub type TaskFuture = BoxFuture<'static, VortexResult<Option<ArrayRef>>>;
2323

2424
/// Logic for executing a single split reading task.
2525
/// N.B. read_mask should be evaluated against all_false() before calling this
@@ -34,12 +34,12 @@ pub type TaskFuture<T> = BoxFuture<'static, VortexResult<T>>;
3434
/// has eliminated more blocks, the full filter is executed over the remainder of the split.
3535
///
3636
/// This mask is then provided to the reader to perform a filtered projection over the split data,
37-
/// finally mapping the Vortex columnar record batches into some result type `A`.
37+
/// yielding the projected array (or `None` when the split selects no rows).
3838
pub fn split_exec(
3939
ctx: Arc<TaskContext>,
4040
read_mask: RowMask,
4141
limit: Option<&mut u64>,
42-
) -> VortexResult<TaskFuture<Option<ArrayRef>>> {
42+
) -> VortexResult<TaskFuture> {
4343
let row_range = read_mask.row_range();
4444
let row_mask = read_mask.mask().clone();
4545

0 commit comments

Comments
 (0)