-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colexec: fix external sorter memory accounting
Previously, there was a problem with inputPartitioningOperator (which divides up the input into "partitions" once the partition exceeds the provided memory limit) because usage of Allocator.Clear is not compatible with Allocator.PerformOperation. Now this problem is fixed by explicitly tracking the memory used by the input batches with RetainBatch against a "standalone" allocator. We're using standalone budget for that to avoid double counting for the memory of the batch (they are accounted already with unlimitedAllocator of the sorter). Release note: None
- Loading branch information
1 parent
3429c96
commit b344b39
Showing
3 changed files
with
55 additions
and
29 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