-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support all TPC-H queries (#796)
This PR adds support for all remaining TPC-H queries. The main change is to support correlated subqueries in expressions. The planner and optimizer design is following the article [SQL 子查询的优化](https://zhuanlan.zhihu.com/p/60380557). Other minor changes include: - support COPY query result into file - support `count(distinct ..)` aggregation - support {nested loop, hash} x {semi, anti} join - optimize `HashJoinExecutor`, do not collect all input chunks at the beginning. - fix in predicate and projection pushdown. A quick benchmark compared with DuckDB (notice the log-scale): <img width="636" alt="risinglight-tpch-duckdb" src="https://github.com/risinglightdb/risinglight/assets/15158738/049f6848-a72f-4ce7-9fc9-1a7d0b7d21ec"> <details> <summary>Full benchmark result</summary> | **ms** | **RisingLight** | **DuckDB** | | ------- | --------------- | ---------- | | **Q1** | 1576 | 45 | | **Q2** | 404 | 12 | | **Q3** | 325 | 19 | | **Q4** | 265 | 32 | | **Q5** | 577 | 20 | | **Q6** | 131 | 6 | | **Q7** | 1821 | 48 | | **Q8** | 2591 | 22 | | **Q9** | 748 | 63 | | **Q10** | 546 | 63 | | **Q11** | 79 | 5 | | **Q12** | 286 | 15 | | **Q13** | 408 | 51 | | **Q14** | 152 | 13 | | **Q15** | 118 | 17 | | **Q16** | 90 | 20 | | **Q17** | 3947 | 56 | | **Q18** | 2459 | 88 | | **Q19** | 436 | 32 | | **Q20** | 1458 | 42 | | **Q21** | 6690 | 75 | | **Q22** | 94 | 16 | </details> --------- Signed-off-by: Runji Wang <[email protected]>
- Loading branch information
1 parent
85f50ed
commit c4252aa
Showing
79 changed files
with
6,852 additions
and
1,264 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
Oops, something went wrong.