Skip to content

Commit 64a5e72

Browse files
authored
chore: add more files to p3 submission (#544)
* chore: add more files to p3 submission Signed-off-by: Alex Chi <[email protected]> * fix Signed-off-by: Alex Chi <[email protected]> * fix Signed-off-by: Alex Chi <[email protected]> --------- Signed-off-by: Alex Chi <[email protected]>
1 parent 881e30b commit 64a5e72

File tree

5 files changed

+28
-25
lines changed

5 files changed

+28
-25
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ set(P3_FILES
341341
"src/optimizer/optimizer_custom_rules.cpp"
342342
"src/optimizer/sort_limit_as_topn.cpp"
343343
"src/optimizer/optimizer_internal.cpp"
344+
"src/common/bustub_ddl.cpp"
345+
"src/include/execution/plans/index_scan_plan.h"
344346
${P2_FILES}
345347
)
346348

@@ -359,7 +361,8 @@ add_custom_target(submit-p3
359361
set(P4_FILES
360362
"src/include/concurrency/lock_manager.h"
361363
"src/concurrency/lock_manager.cpp"
362-
"src/include/execution/plans/index_scan_plan.h"
364+
"src/include/concurrency/transaction_manager.h"
365+
"src/concurrency/transaction_manager.cpp"
363366
"tools/terrier_bench/terrier_bench_config.h"
364367
${P3_FILES}
365368
)

src/include/execution/plans/seq_scan_plan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SeqScanPlanNode : public AbstractPlanNode {
5858
std::string table_name_;
5959

6060
/** The predicate to filter in seqscan. It will ALWAYS be nullptr unless you enable the MergeFilterScan rule.
61-
You don't need to handle it to get a perfect score in project 3 / project 4 in Spring 2023.
61+
You don't need to handle it to get a perfect score in project 3 in Spring 2023.
6262
*/
6363
AbstractExpressionRef filter_predicate_;
6464

src/include/storage/index/b_plus_tree_index.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ constexpr static const auto TWO_INTEGER_SIZE = 8;
5454
using IntegerKeyType = GenericKey<TWO_INTEGER_SIZE>;
5555
using IntegerValueType = RID;
5656
using IntegerComparatorType = GenericComparator<TWO_INTEGER_SIZE>;
57-
using BPlusTreeIndexForOneIntegerColumn = BPlusTreeIndex<IntegerKeyType, IntegerValueType, IntegerComparatorType>;
58-
using BPlusTreeIndexIteratorForOneIntegerColumn =
57+
using BPlusTreeIndexForTwoIntegerColumn = BPlusTreeIndex<IntegerKeyType, IntegerValueType, IntegerComparatorType>;
58+
using BPlusTreeIndexIteratorForTwoIntegerColumn =
5959
IndexIterator<IntegerKeyType, IntegerValueType, IntegerComparatorType>;
6060
using IntegerHashFunctionType = HashFunction<IntegerKeyType>;
6161

test/sql/p3.17-topn.slt

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

33
query +ensure:topn
44
select * from test_simple_seq_2 order by col1 desc limit 5;

test/sql/p3.leaderboard-q3.slt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ select v, d1, d2 from (
1414
from __mock_t7 left join (select v4 from __mock_t8 where 1 == 2) on v < v4 group by v
1515
)
1616
----
17-
19 999999 2999997
18-
15 999995 2999985
19-
16 999996 2999988
20-
14 999994 2999982
21-
17 999997 2999991
22-
13 999993 2999979
23-
18 999998 2999994
24-
12 999992 2999976
25-
11 999991 2999973
26-
10 999990 2999970
27-
9 999989 2999967
28-
7 999987 2999961
29-
8 999988 2999964
30-
6 999986 2999958
31-
5 999985 2999955
32-
3 999983 2999949
33-
4 999984 2999952
34-
2 999982 2999946
35-
1 999981 2999943
36-
0 999980 2999940
17+
19 999999 2999997
18+
15 999995 2999985
19+
16 999996 2999988
20+
14 999994 2999982
21+
17 999997 2999991
22+
13 999993 2999979
23+
18 999998 2999994
24+
12 999992 2999976
25+
11 999991 2999973
26+
10 999990 2999970
27+
9 999989 2999967
28+
7 999987 2999961
29+
8 999988 2999964
30+
6 999986 2999958
31+
5 999985 2999955
32+
3 999983 2999949
33+
4 999984 2999952
34+
2 999982 2999946
35+
1 999981 2999943
36+
0 999980 2999940

0 commit comments

Comments
 (0)