-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43786: colexec: add external sort r=yuzefovich a=yuzefovich **execinfra: minor refactor of getting working memory limit** This commit introduces a helper method for getting the working memory limit in bytes from a combination of testing knobs and a cluster setting. Release note: None **colexec: add simple implementation of an external sort** This commit adds a simple implementation of external sort that works in two stages: 1. it will use a combination of a newly introduced input partitioner and in-memory sorter to divide up all batches from the input into partitions, sort each partition in memory, and write sorted partitions to disk 2. it will use OrderedSynchronizer to merge the partitions. Closes: #42409. Release note: None **colexec: refactor all spooler to not require allocator when exporting** This commit modifies 'spooler' interface to add a method that allows accessing spooled tuples as "windowed batches" so that when exporting buffered tuples an allocator is not required and no copying is not necessary. Instead, windowed batches are returned which are safe to use until the next call and need to be copied somewhere else. Such behavior is acceptable because these batches will be spilled to disk. Release note: None **cmd: increase timeout and make TESTS regex more specific in pull-request-make** This commit increases the timeout from 5 to 10 minutes (I ran into a situation where the CI `testrace` was timing out). Also, it adds `$$` symbols to the end of each test so that full length matching occurred instead of prefix matching (e.g. `TestSort` also matches `TestSortedDistinct` which could be not modified in the PR to run `testrace` for). Release note: None Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information
Showing
25 changed files
with
999 additions
and
243 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
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
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.