Skip to content

Conversation

asautins
Copy link

@asautins asautins commented Oct 6, 2025

What changes were proposed in this pull request?

Change ExplodeBase.eval to return an Iterator instead of Array.

Why are the changes needed?

Returning an Array is requires that all InternalRow objects be created in the call to ExplodeBase.eval. Using iterators MapExplodeIterator and ArrayExplodeIterator the memory required for the explode operator is reduced.

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
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