You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
148306: sql: lift lookup join parallelization into execbuilder r=yuzefovich a=yuzefovich
In preparation for expanding the heuristic for when it's safe to parallelize cross-range reads in the lookup join, this commit lifts the decision into the execbuilder. As a reminder, when Streamer API is not used, we currently choose to enable parallelism when an input row can result in at most one lookup row (which is the case for index joins as well as lookup joins when equality columns form a key), also when the session variable enables it for multi-lookup case. Previously, this was determined when creating the JoinReader, and now we make this determination in the execbuilder. We add a new field to the processor spec based on the execbuilder argument (for compatibility with 25.2 release we also keep the old logic for now).
Additionally, this commit enhances the EXPLAIN output to show `parallel` attribute in VERBOSE mode when applicable (when the streamer is used as well as when Parallelize is set to true by the execbuilder). This improvement was part of the reason to lifting the determination up there (so that `parallelize` boolean argument to ConstructLookupJoin is captured by the explain factory).
Informs: #134351.
Epic: None
Release note: None
Co-authored-by: Yahor Yuzefovich <[email protected]>
0 commit comments