Skip to content

feat: support map inputs for explode - #6107

Open
rich7420 wants to merge 2 commits into
apache:mainfrom
rich7420:feat/2837-native-map-explode
Open

rich7420 wants to merge 2 commits into
apache:mainfrom
rich7420:feat/2837-native-map-explode

Conversation

@rich7420

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2837.

Rationale for this change

Map inputs to explode and posexplode currently fall back to Spark.

What changes are included in this PR?

Support maps in all four explode variants by sharing their entry buffers with the existing unnest path. Preserve field metadata, entry order and outer NULL rows. Add regression tests and update support documentation.

How are these changes tested?

18 Rust tests and 52 targeted tests on each of Spark 3.5.9 and 4.1.3 pass, covering native execution, NULL/empty maps, nested inputs, sliced arrays and batch boundaries. Fork CI passes across Spark profiles and the Spark 4.1 SQL suites.

@github-actions github-actions Bot added enhancement New feature or request area:expressions Expression evaluation labels Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:expressions Expression evaluation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for map inputs to explode

1 participant