-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make state spillable in partitioned writer [databricks] #8667
Merged
abellina
merged 38 commits into
NVIDIA:branch-23.08
from
abellina:spillable_splits_part_writer
Jul 26, 2023
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
13e3ab2
Make state spillable in partitioned writer
abellina e349864
Fix import order
abellina dce0f19
Move withRestoreOnRetry outside of bufferBatchAndClose only on retry …
abellina 6eeb1a0
Remove extraneous withRetryNoSplit
abellina 7fd33d6
Address review comments in GpuFileFormatDataWriter
abellina e6a739b
Add comment around the anythingWritten flag in ColumnarOutputWriter
abellina f73790e
Fix leak in my revisions
abellina c056912
Add withRetryNoSplit in GpuDeltaTaskStatisticsTracker.newBatch
abellina 9825536
Fix import order
abellina a921bfd
Do not close spillable in GpuDeltaTaskStatisticsTracker
abellina fbe0fb4
Pass template argument to withRetryNoSplit
abellina e5fe2e6
Upmerge
abellina 4922214
Fix upmerge issues
abellina ab4633f
Add unit tests
abellina 1420101
Import order
abellina c989223
Make sure to pass TaskContext
abellina 57bd89d
Remove debug statements
abellina 963a99a
Remove more debug logic
abellina 9e3f5b3
Address review comments
abellina f9cc9ec
Ensure newBatch is called inside closeOnExcept
abellina bef9335
Add scaladoc
abellina 79ce06b
Initialize RapidsBufferCatalog in FileCacheIntegrationSuite
abellina 022e2d6
Tweak method name and make sure writeSpillableAndClose doesnt call ne…
abellina 4fb645f
Adds a test and fix code around writeSpillableAndClose
abellina 03d6105
Merge branch 'branch-23.08' of https://github.com/NVIDIA/spark-rapids…
abellina 1ade1f6
Close spillable if we cant materialize the whole batch
abellina 3c903d3
Close batches here for now in the test
abellina 8c57ff2
We need to close batches in our mock to maintain expectations
abellina 22bafa4
Batches are now closed correctly from mock
abellina 8fe1d18
Make sure that we close existing sessions in SparkQueryCompreTestSuite
abellina f556fbc
Handling of session cleanup is happening at superclass
abellina fd96e54
Merge branch 'branch-23.08' of https://github.com/NVIDIA/spark-rapids…
abellina df425ce
Fixes unit test issues where the catalog/semaphore were being left in…
abellina f746816
Remove extra line
abellina 3e0445b
Unused imports
abellina 87f22cc
Fix issues with DeviceMemoryEventHandlerSuite
abellina 54c83b3
Use RmmSparkRetrySuiteBase to reset rmm event handlers
abellina a08e5a5
Apply code review comments
abellina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to separate
outputStream
fromgetOutputStream
? One simply calls the other, and derived classes can overrideoutputStream
if necessary. I don't actually see any overrides or accesses of this outside of this class, so wondering why this was made protected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for this was so that I could override the definition in the tests. I created a subclass of the
ColumnarOutputWriter
in the tests and mocked outFSDataOutputStream
. I was not able to mock this with the val as it seemed that the act of extendingColumnarOutputWriter
meant that the body of code (in your diff lines 78 to 80) needs to execute, even if the subclass is going to overrideoutputStream
.Overriding the def worked, and it called the subclass method instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could you add that as a comment to getOutputStream so we know why it is there?