Skip to content

Commit 881e30b

Browse files
yliang412skyzh
andauthored
refactor: change assigned points to each p3 tasks (#543)
* change assigned points to each p3 tasks Signed-off-by: Yuchen Liang <[email protected]> * upd Signed-off-by: Alex Chi <[email protected]> --------- Signed-off-by: Yuchen Liang <[email protected]> Signed-off-by: Alex Chi <[email protected]> Co-authored-by: Alex Chi <[email protected]>
1 parent 5d7a9ac commit 881e30b

18 files changed

+17
-19
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ set(P3_FILES
318318
"src/include/execution/executors/index_scan_executor.h"
319319
"src/include/execution/executors/insert_executor.h"
320320
"src/include/execution/executors/limit_executor.h"
321-
"src/include/execution/executors/nested_index_join_executor.h"
322321
"src/include/execution/executors/nested_loop_join_executor.h"
323322
"src/include/execution/executors/seq_scan_executor.h"
324323
"src/include/execution/executors/sort_executor.h"
@@ -331,7 +330,6 @@ set(P3_FILES
331330
"src/execution/index_scan_executor.cpp"
332331
"src/execution/insert_executor.cpp"
333332
"src/execution/limit_executor.cpp"
334-
"src/execution/nested_index_join_executor.cpp"
335333
"src/execution/nested_loop_join_executor.cpp"
336334
"src/execution/seq_scan_executor.cpp"
337335
"src/execution/sort_executor.cpp"

src/optimizer/optimizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ auto Optimizer::Optimize(const AbstractPlanNodeRef &plan) -> AbstractPlanNodeRef
1111
auto p = plan;
1212
p = OptimizeMergeProjection(p);
1313
p = OptimizeMergeFilterNLJ(p);
14-
p = OptimizeNLJAsIndexJoin(p);
1514
p = OptimizeOrderByAsIndexScan(p);
1615
p = OptimizeSortLimitAsTopN(p);
1716
return p;

src/optimizer/optimizer_custom_rules.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ auto Optimizer::OptimizeCustom(const AbstractPlanNodeRef &plan) -> AbstractPlanN
1111
auto p = plan;
1212
p = OptimizeMergeProjection(p);
1313
p = OptimizeMergeFilterNLJ(p);
14-
p = OptimizeNLJAsIndexJoin(p);
15-
// p = OptimizeNLJAsHashJoin(p); // Enable this rule after you have implemented hash join.
14+
p = OptimizeNLJAsHashJoin(p);
1615
p = OptimizeOrderByAsIndexScan(p);
1716
p = OptimizeSortLimitAsTopN(p);
1817
return p;

test/sql/p3.01-seqscan.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 pts
1+
# 4 pts
22

33
query
44
select * from test_simple_seq_1;

test/sql/p3.02-insert.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 pts
1+
# 4 pts
22

33
# Create a table
44
statement ok

test/sql/p3.03-update.slt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 4 pts
2+
13
# Create a table
24
statement ok
35
create table t1(v1 int, v2 varchar(128), v3 int);

test/sql/p3.04-delete.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 pts
1+
# 4 pts
22

33
# Create a table
44
statement ok

test/sql/p3.05-index-scan.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 10 pts
1+
# 7 pts
22

33
# Ensure all order-bys in this file are transformed into index scan
44
statement ok

test/sql/p3.06-empty-table.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 pts
1+
# 4 pts
22

33
# Create a table
44
statement ok

test/sql/p3.07-simple-agg.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 5 pts
1+
# 4 pts
22

33
# How many TAs are there in 2023 Spring?
44
query

0 commit comments

Comments
 (0)