-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] Fix bug in creation of HashNode(kLeftSemiProject).
In Presto Native we create HashNode(kLeftSemiProject) with nullAware=false from toVeloxQueryPlan(FilterNode). 'nullAware' dictates how we treat nulls in the left keys. This causes some queries in Presto Native to return more rows than Presto. Because Presto does not have any member in class SemiJoinNode that indicates how it processes nulls and is always 'null aware'. Interesting, that toVeloxQueryPlan(SemiJoinNode) code path creates HashNode(kLeftSemiProject) with nullAware=true, which is correct. To fix the issue we route the creation of HashNode(kLeftSemiProject) in toVeloxQueryPlan(FilterNode) through toVeloxQueryPlan(SemiJoinNode), thus having only one place where we create HashNode(kLeftSemiProject) with nullAware=true.
- Loading branch information
1 parent
245c93f
commit 8b15be6
Showing
3 changed files
with
16 additions
and
23 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