-
Notifications
You must be signed in to change notification settings - Fork 241
[AURON #2307] Add @transient to large fields and use NativePartition to reduce serialization overhead - #2515
Open
Deegue wants to merge 1 commit into
Open
Conversation
Deegue
force-pushed
the
auron#2307_perf-add-transient-reduce-serialization
branch
9 times, most recently
from
September 9, 2026 14:29
a7567a4 to
bd42e37
Compare
...rialization overhead
Deegue
force-pushed
the
auron#2307_perf-add-transient-reduce-serialization
branch
from
September 10, 2026 04:44
bd42e37 to
7ecfbea
Compare
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.
Uh oh!
There was an error while loading. Please reload this page.
Which issue does this PR close?
Closes #2307
Rationale for this change
Reduce task serialization size and memory usage by avoiding serialization of the full rddPartitions array per task.
Previously, each task closure captured a reference to the upstream NativeRDD, causing the entire rddPartitions array to be serialized with every task. This PR introduces a NativePartition[P] wrapper that embeds only the relevant partition payload into each task's closure, and marks rddPartitions as
@transientso the full array is excluded from serialization.What changes are included in this PR?
@transientto rddPartitions in NativeRDD, with numRddPartitions stored for lightweight partition reconstruction after deserialization@transientto inputFileScanRDD in NativeFileSourceScanBase (large driver-only field)@transientto private constructor parameters in Exec classes where the field is only used on the driver (NativeBroadcastExchangeBase.mode, NativeParquetInsertIntoHiveTableBase.cmd, NativeHiveTableScanBase.basedHiveScan)Are there any user-facing changes?
No.
How was this patch tested?
UTs.