Skip to content

Conversation

asautins
Copy link

@asautins asautins commented Oct 6, 2025

What changes were proposed in this pull request?

This PR proposes changing the value returned from ExplodeBase.eval from Array[IterableOnce] to IterableOnce[IternalRow]. Array converts to an IterableOnce with an implicit conversion. This change proposes directly returning an IterableOnce[InternalRow] object that is a thin wrapper around input.

Why are the changes needed?

I wouldn't say they are needed, however the current implementation creates an intermediate array that is populated and then iterated. The creation and population of the array would be eliminated with this PR.

Does this PR introduce any user-facing change?

This PR has no user facing changes.

How was this patch tested?

Github Actions

Was this patch authored or co-authored using generative AI tooling?

The creation of this patch was assisted by Microsoft Copilot. The initial change was made using Agent mode.

@github-actions github-actions bot added the SQL label Oct 6, 2025
@asautins asautins force-pushed the asautins/explode-lazy branch from 1a0df03 to ada938f Compare October 6, 2025 17:51
@asautins asautins closed this Oct 6, 2025
@asautins asautins reopened this Oct 6, 2025
@asautins asautins changed the title Initial revision WIP - lazy evaluation for explode generator Oct 6, 2025
@asautins asautins marked this pull request as ready for review October 6, 2025 18:19
@asautins asautins changed the title WIP - lazy evaluation for explode generator lazy evaluation for explode generator Oct 6, 2025
@asautins asautins changed the title lazy evaluation for explode generator ExplodeBase.eval - Return IterableOnce to iterate over input Oct 10, 2025
@asautins asautins changed the title ExplodeBase.eval - Return IterableOnce to iterate over input [SPARK-53873][SQL] ExplodeBase.eval - Return IterableOnce to iterate over input Oct 10, 2025
@asautins asautins closed this Oct 11, 2025
@asautins asautins deleted the asautins/explode-lazy branch October 11, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant