-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memoize results in
SourceScanOptimizer
for better CTE generation (#…
…1563) Generation of CTEs is determined by identical nodes in the dataflow plan. Previously, the `SourceScanOptimizer` would create new nodes whenever it was able to optimize a branch. In addition, it would create new nodes in some cases where it was not necessary. This PR updates `SourceScanOptimizer` to memoize results so that identical nodes are used in cases where the dataflow branch is the same. This results in snapshot changes for tests where the optimizer previously prevented CTEs from being used - please view by commit.
- Loading branch information
Showing
280 changed files
with
10,193 additions
and
9,799 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
Oops, something went wrong.