-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for splitting up input in PartitionedOutput (#7059)
Summary: In case of a single partition or round robin partitioning, we end up generating a single IndexRange with the full set of input rows to be processed by the serializer. The current implementation only checks if it needs to flush the serialized data after processing a complete IndexRange. That check exists to ensure we don’t serialize if we hit either memory or row count limits. Due to this we can encounter situations where the full input gets serialized and is way over those limits resulting in OOMs. This change adds support for partially serializing an IndexRange and checks the limit after each row. Additionally this fixes a bug where row count limits were incorrectly evaluated, either because the number of IndexRanges were being compared or the row count was not maintained between serialization calls that did not result in flushing. Fixes: #7048 Pull Request resolved: #7059 Test Plan: Added unit tests that verify both paths and ensure an input IndexRange can be split multiple ways. Reviewed By: xiaoxmeng Differential Revision: D50293366 Pulled By: bikramSingh91 fbshipit-source-id: dece682bbd7b10ac8acb21f4373c3171eb29b3f9
- Loading branch information
1 parent
de33aef
commit 56cb7e6
Showing
3 changed files
with
117 additions
and
31 deletions.
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