-
Notifications
You must be signed in to change notification settings - Fork 4.1k
colexec: improve unordered distinct #44404
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
When #42522 goes in, we will have the support for unordered distinct. It works by building a hash table over the whole input and storing all the tuples from the input in the hash table, and then iterating over it and outputting only "head" tuples. This is quite inefficient and should be improved. Namely, we'll need to modify the hash table to not store duplicates at all.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)