Skip to content

Commit 988e4ff

Browse files
committed
register validity splits
Signed-off-by: Andrew Duffy <[email protected]>
1 parent e4d9c3c commit 988e4ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ impl LayoutReader for StructReader {
210210
// In the case of an empty struct, we need to register the end split.
211211
splits.insert(row_range.end);
212212

213+
// Register splits for the validity child, if there is one
214+
if let Some(validity_ref) = self.validity()? {
215+
validity_ref.register_splits(field_mask, row_range, splits)?;
216+
}
217+
213218
self.layout.matching_fields(field_mask, |mask, idx| {
214219
self.field_reader_by_index(idx)?
215220
.register_splits(&[mask], row_range, splits)

0 commit comments

Comments
 (0)