Skip to content

Commit a402f34

Browse files
committed
turn it back on
Signed-off-by: Andrew Duffy <[email protected]>
1 parent 46573e5 commit a402f34

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ impl LayoutStrategy for StructStrategy {
5151
) -> VortexResult<LayoutRef> {
5252
let dtype = stream.dtype().clone();
5353
let Some(struct_dtype) = stream.dtype().as_struct_fields_opt().cloned() else {
54-
vortex_bail!("StructStrategy expects to consume struct array, type was {dtype}");
54+
return self
55+
.child
56+
.write_stream(ctx, segment_sink, stream, eof, handle)
57+
.await;
5558
};
5659

5760
// Check for unique field names at write time.

vortex-scan/src/tasks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pub type TaskFuture<A> = BoxFuture<'static, VortexResult<A>>;
2424
///
2525
/// # Task execution flow
2626
///
27-
/// First, the tasks's row range (split) is intersected with the global file row-range requested,
27+
/// First, the task's row range (split) is intersected with the global file row-range requested,
2828
/// if any.
2929
///
30-
/// Then intersected row range is then further reduced via expression-based pruning. After pruning
30+
/// The intersected row range is then further reduced via expression-based pruning. After pruning
3131
/// has eliminated more blocks, the full filter is executed over the remainder of the split.
3232
///
3333
/// This mask is then provided to the reader to perform a filtered projection over the split data,
@@ -46,7 +46,7 @@ pub(super) fn split_exec<A: 'static + Send>(
4646
}
4747

4848
let filter_mask = match ctx.filter.as_ref() {
49-
// No filter == immediate task
49+
// No filter == immediate mask
5050
None => {
5151
let row_mask = match limit {
5252
Some(l) if *l == 0 => Mask::new_false(row_mask.len()),

0 commit comments

Comments
 (0)