Skip to content

Commit 1f1a8a0

Browse files
authored
Fall 2024 Project 3 sqllogictest (#767)
1 parent 6fd1846 commit 1f1a8a0

15 files changed

+611
-338
lines changed

test/sql/p3.00-primer.slt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
query rowsort
2-
select github_id, office_hour from __mock_table_tas_2024;
2+
select github_id, office_hour from __mock_table_tas_2024_fall;
33
----
4-
AlSchlo Friday
5-
walkingcabbages Thursday
6-
averyqi115 Friday
7-
lanlou1554 Wednesday
8-
sweetsuro Thursday
9-
ChaosZhai Yesterday
10-
SDTheSlayer Monday
4+
17zhangw Wednesday
5+
connortsui20 Thursday
6+
J-HowHuang Tuesday
7+
lanlou1554 Monday
8+
prashanthduvvada Friday
9+
unw9527 Thursday
1110
xx01cyx Tuesday
12-
yliang412 Tuesday
13-
thelongmarch-azx Monday
11+
yashkothari42 Friday

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# How many TAs are there in 2024 Spring?
44
query
5-
select count(*) from __mock_table_tas_2024;
5+
select count(*) from __mock_table_tas_2024_fall;
66
----
7-
10
7+
8
88

99
# The real test process begins...
1010

test/sql/p3.08-group-agg-1.slt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
# "rowsort" means that the order of result doesn't matter.
55

66
query rowsort
7-
select office_hour, count(*) from __mock_table_tas_2024 group by office_hour;
7+
select office_hour, count(*) from __mock_table_tas_2024_fall group by office_hour;
88
----
99
Tuesday 2
1010
Friday 2
11-
Monday 2
12-
Yesterday 1
11+
Monday 1
1312
Wednesday 1
1413
Thursday 2
1514

test/sql/p3.10-simple-join.slt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ set force_optimizer_starter_rule=yes
88

99
query rowsort
1010
select * from
11-
__mock_table_tas_2024 inner join __mock_table_schedule
11+
__mock_table_tas_2024_fall inner join __mock_table_schedule
1212
on office_hour = day_of_week
1313
where has_lecture = 1;
1414
----
15-
lanlou1554 Wednesday Wednesday 1
16-
SDTheSlayer Monday Monday 1
17-
thelongmarch-azx Monday Monday 1
15+
lanlou1554 Monday Monday 1
16+
17zhangw Wednesday Wednesday 1
1817

1918

2019
# The real test begins...

test/sql/p3.12-repeat-execute.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
# Put everything on the right side of NLJ
33

44
statement ok

test/sql/p3.13-nested-index-join.slt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# --- NOT TESTED IN Fall 2023 ---
2-
no test
1+
# 6 pts
32

43
statement ok
54
set force_optimizer_starter_rule=yes

test/sql/p3.14-hash-join.slt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
# 5 pts
1+
# 4 pts
22

33
# Show office hours on lecture days
44
# "rowsort" means that the order of result doesn't matter.
55

66
query rowsort +ensure:hash_join
77
select * from
8-
__mock_table_tas_2024 inner join __mock_table_schedule
8+
__mock_table_tas_2024_fall inner join __mock_table_schedule
99
on office_hour = day_of_week
1010
where has_lecture = 1;
1111
----
12-
SDTheSlayer Monday Monday 1
13-
thelongmarch-azx Monday Monday 1
14-
lanlou1554 Wednesday Wednesday 1
12+
lanlou1554 Monday Monday 1
13+
17zhangw Wednesday Wednesday 1
1514

1615

1716
# The real test begins...

0 commit comments

Comments
 (0)