-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Stageify plan on shuffle boundaries (#3781)
Refactor the current adaptive planner to stageify the plan on, works as follows: 1. Translate logical plan until the root is reached or we hit a point where materialized data can better inform the planning decision, i.e. a join. 2. Split the translated physical plan on shuffle exchanges, first emitting the plan until the exchange, then the exchange, then repeat until the physical plan is complete. 3. Optimize the logical plan and repeat from step 1. Essentially, the logical boundaries are joins (these are the only places where data size affects the planning decision) and the physical boundaries are shuffles. **Results of TPCH SF1000, 4 nodes** After: Daft Q1 took 31.26 seconds Daft Q2 took 35.46 seconds Daft Q3 took 53.77 seconds Daft Q4 took 19.98 seconds Daft Q5 took 206.01 seconds Daft Q6 took 10.50 seconds Daft Q7 took 91.34 seconds Daft Q8 took 142.85 seconds Daft Q9 took 271.16 seconds Daft Q10 took 53.28 seconds Total time: 918.28 seconds Spilled 2194637 MiB Before: Q1 took 31.05 seconds Q2 took 24.95 seconds Q3 took 50.91 seconds Q4 took 24.11 seconds Q5 took 177.07 seconds Q6 took 11.17 seconds Q7 took 75.97 seconds Q8 took 150.76 seconds Q9 took 263.51 seconds Q10 took 59.37 seconds Total: 868.87 seconds Spilled 2200948 MiB --------- Co-authored-by: Colin Ho <colinho@Colins-MacBook-Pro.local> Co-authored-by: Colin Ho <colinho@Colins-MBP.localdomain>
- Loading branch information
1 parent
0080a7e
commit f782869
Showing
25 changed files
with
782 additions
and
218 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
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.