Expand description
The JoinSelection rule tries to modify a given plan so that it can
accommodate infinite sources and utilize statistical information (if there
is any) to obtain more performant plans. To achieve the first goal, it
tries to transform a non-runnable query (with the given infinite sources)
into a runnable query by replacing pipeline-breaking join operations with
pipeline-friendly ones. To achieve the second goal, it selects the proper
PartitionMode and the build side using the available statistics for hash joins.
Structs§
- Join
Selection - The
JoinSelectionrule tries to modify a given plan so that it can accommodate infinite sources and optimize joins in the plan according to available statistical information, if there is any.
Functions§
- hash_
join_ swap_ subrule - This subrule will swap build/probe sides of a hash join depending on whether one of its inputs may produce an infinite stream of records. The rule ensures that the left (build) side of the hash join always operates on an input stream that will produce a finite set of records. If the left side can not be chosen to be “finite”, the join sides stay the same as the original query.
Type Aliases§
- Pipeline
Fixer Subrule - Pipeline-fixing join selection subrule.