Skip to content

Add support for nested lists in substrait consumer#20953

Open
alexanderbianchi wants to merge 4 commits intoapache:mainfrom
alexanderbianchi:bianchi/addnestedsubstraitsupport
Open

Add support for nested lists in substrait consumer#20953
alexanderbianchi wants to merge 4 commits intoapache:mainfrom
alexanderbianchi:bianchi/addnestedsubstraitsupport

Conversation

@alexanderbianchi
Copy link
Contributor

@alexanderbianchi alexanderbianchi commented Mar 15, 2026

Rationale for this change

Adds support for nested array expressions to the substrait consumer. Defined in algebra.proto.

What changes are included in this PR?

Implements the previously unimplemented consume_nested for NestedType::List.

Are these changes tested?

Yes, unit tests match the testing pattern for substrait literals in consumer/expr/literal.rs. Snapshot test is added for make_array() path.

Are there any user-facing changes?

User's will now be able to send nested list expressions. This change is purely additive all previous consumable Substrait plans will continue to work.

@github-actions github-actions bot added the substrait Changes to the substrait crate label Mar 15, 2026
@alexanderbianchi alexanderbianchi force-pushed the bianchi/addnestedsubstraitsupport branch 2 times, most recently from fea10ee to 4abf8f7 Compare March 15, 2026 16:25
Copy link
Contributor

@LiaCastaneda LiaCastaneda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
fyi @dd-david-levin since you were looking into this too in #20821

cc @gabotechs could you take a look at this one whenever you have time? I think it’s good to go

@alexanderbianchi alexanderbianchi force-pushed the bianchi/addnestedsubstraitsupport branch 2 times, most recently from e3d511d to d74bd37 Compare March 16, 2026 14:23
@alexanderbianchi alexanderbianchi force-pushed the bianchi/addnestedsubstraitsupport branch from d74bd37 to fc7b3e8 Compare March 16, 2026 14:23
@gabotechs gabotechs requested a review from vbarua March 16, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants