forked from prestodb/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow EnforceSingleRowNode for predicate extractor
Assuming we have a daily ingested table that is partitioned on ds, a filter like `ds = (SELECT '2020-07-01')` is converted into an INNER JOIN, but this value is not passed to the other side of Join, which leads to full table scan. This commit will enable this value being treated as predicate, and thus we only need to read this one partition.
- Loading branch information
1 parent
5944e15
commit 259f461
Showing
3 changed files
with
37 additions
and
4 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