Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate partition properties for full outer join
For full outer join, the outputs are effectively partitioned on a parwise combination of the partitioning columns involved in the equi-join criteria. The combination function is equivalente to sql's coalesce: the first non-null value between each pair of columns. This is due to the following observations: * If both input columns are null, they'll be reshuffled to the same node, so coalesce(null, null) => null * Otherwise, for any combination of values of left & right, if a row is produce by the join, one of these must be true: * left is not null, right is not null and left = right, so both values are reshuffled to the same node => coalesce(left, right) = left = right * left is not null and there is no matching row => coalesce(left, null) = left, which can only be emitted by the node left was reshuffled to. * right is not null and there is no matching row => coalesce(null, right) = right, which can only be emitted by the node right was reshuffled to. Extracted-from: https://github.com/prestosql/presto
- Loading branch information
Showing
6 changed files
with
215 additions
and
45 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
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.