Skip to content

feat(list): push element projections through ListLayout via list_get_item - #9725

Closed
radmirnovii wants to merge 3 commits into
vortex-data:developfrom
radmirnovii:rad/list-projection
Closed

feat(list): push element projections through ListLayout via list_get_item#9725
radmirnovii wants to merge 3 commits into
vortex-data:developfrom
radmirnovii:rad/list-projection

Conversation

@radmirnovii

@radmirnovii radmirnovii commented Sep 2, 2026

Copy link
Copy Markdown

Closes #9724.

  • Adds ListGetItem (vortex.list.get_item): projects one struct field out of every list
    element, over List/ListView/FixedSizeList and nested lists.
  • ListLayout reader detects a list_get_item chain over root(), pushes the equivalent
    element projection into the elements child, and rewrites the outer expression against the
    narrowed list. Other expression shapes keep the existing read. filter_evaluation shares the path.

Tests: segment-count tests prove unprojected fields are never requested at one and two
nesting levels; results round-trip against in-memory evaluation across ranges, masks, nullability.

Scope: one leaf path per expression (two different fields in one expression fall back to the
full read); IO skipping needs files written with ListLayoutStrategy::with_elements(StructStrategy),
the default writer is unchanged.

Follow-ups: multi-field projection, Python/FFI/DuckDB/DataFusion exposure.

AI assistance: implemented with Claude Code; design, review and testing by me.

`list_get_item(field, list)` projects one struct field out of every list
element. The list layout reader pushes it into the elements child, so
struct-shredded elements skip unprojected fields' segments.

Signed-off-by: rad <radmirnovii@gmail.com>
`list_get_item` chains descend nested lists, and the list layout reader
pushes the whole chain into the elements child one level at a time.

Signed-off-by: rad <radmirnovii@gmail.com>
Signed-off-by: rad <radmirnovii@gmail.com>
@radmirnovii radmirnovii reopened this Sep 2, 2026
@joseph-isaacs

Copy link
Copy Markdown
Contributor

We are in the process of adding higher order functions that will remove all the extra work without needing many new functions

@joseph-isaacs

Copy link
Copy Markdown
Contributor

If you are interested in contributing to vortex please join the channel and we can chat further!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue: list element projection pushdown (list_get_item)

2 participants