-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESQL: Add lookup flavor to
MultivalueDedupe
(#107624)
The infrastruction that powers aggregation grouping uses a method called `MultivalueDedupe#hash` which deduplicates all the values in a row, adds them to the hash, and then returns all of the ordinals it added. This renames that method to `hashAdd` and adds another method `hashLookup` which performs the same deduplication and then looks the values up in the hash instead of adding them. It produces the same values as `hashAdd` would return, except when the hash doesn't contain the value - in that case it just adds `null` to the block of ordinals. Think of this as looking up what the aggregation ordinal would be, rather than building ordinals. I have big plans for this.
- Loading branch information
Showing
12 changed files
with
1,213 additions
and
122 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
Oops, something went wrong.