forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46820: colexec: optimize buffering operators with Bytes vectors r=yuzefovich a=yuzefovich Previously, buffering operators would call `SetLength` on their buffered batch when consuming the input. If there are any `Bytes` columns, we would be updating the offsets. Additionally, our "input consumption pattern" is appending to the end of the buffered vectors, and all this would result in quadratic behavior of updating the offsets. This is actually not necessary at all (since `Vec.Append` maintains the correct offsets), so this commit introduces a utility wrapper around `coldata.Batch` that should be used by buffering operators. This commit also removes some "column schema compression" business from the constructor of `hashAggregator` since it makes no sense. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
7 changed files
with
127 additions
and
181 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
Oops, something went wrong.