feature - implement RFC 020 nested scalar functions#46
Draft
dannymeijer wants to merge 1 commit into
Draft
Conversation
This was referenced May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements RFC 020 nested data functions as scalar, registry-backed InQL helpers for arrays, maps, and named structs. The branch keeps relation-cardinality-changing generator behavior reserved for RFC 021 while adding concrete Substrait mappings and DataFusion-backed execution coverage for nested scalar projections.
Stack order: merge PR #44 first, then PR #45, then this PR.
Type of change
docs/rfcs/*)Area(s)
Select the primary areas touched (labels sync from checked lines when the triage workflow runs):
Key details
array(...),cardinality(...),array_contains(...),arrays_overlap(...),element_at(...),array_flatten(...),map_from_arrays(...),map_extract(...),map_contains_key(...),map_keys(...),map_values(...),map_entries(...), andnamed_struct(...).src/functions/nested/helper family using declaration-side registry metadata, stable Substrait function anchors, concrete extension mappings where supported, and a documentedmap_contains_key(...)rewrite over existing scalar applications.element_at(...)adapter behavior instead of pretending a strict/try split exists yet.Testing / verification
make ci(ormake fmt-check,make build,make test)Manual verification notes:
make fmtincan test tests/test_nested_data_functions.incnincan test tests/test_function_registry.incnincan test tests/test_substrait_plan.incnincan test tests/test_session_projection.incnmake fmt-checkmake test-stylemake registry-metadata(78 helpers)make buildmake test(127 passed)make pre-commitmake smoke-consumerDocs impact
If docs updated:
docs/language/reference/functions/nested.md,docs/language/reference/functions/index.md,docs/release_notes/v0_1.md,docs/rfcs/020_nested_data_functions.mdChecklist
Closes #37