Skip to content

Commit

Permalink
Fall 2024 Project 3 sqllogictest (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
xx01cyx authored Oct 27, 2024
1 parent 6fd1846 commit 1f1a8a0
Show file tree
Hide file tree
Showing 15 changed files with 611 additions and 338 deletions.
18 changes: 8 additions & 10 deletions test/sql/p3.00-primer.slt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
query rowsort
select github_id, office_hour from __mock_table_tas_2024;
select github_id, office_hour from __mock_table_tas_2024_fall;
----
AlSchlo Friday
walkingcabbages Thursday
averyqi115 Friday
lanlou1554 Wednesday
sweetsuro Thursday
ChaosZhai Yesterday
SDTheSlayer Monday
17zhangw Wednesday
connortsui20 Thursday
J-HowHuang Tuesday
lanlou1554 Monday
prashanthduvvada Friday
unw9527 Thursday
xx01cyx Tuesday
yliang412 Tuesday
thelongmarch-azx Monday
yashkothari42 Friday
4 changes: 2 additions & 2 deletions test/sql/p3.07-simple-agg.slt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# How many TAs are there in 2024 Spring?
query
select count(*) from __mock_table_tas_2024;
select count(*) from __mock_table_tas_2024_fall;
----
10
8

# The real test process begins...

Expand Down
5 changes: 2 additions & 3 deletions test/sql/p3.08-group-agg-1.slt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
# "rowsort" means that the order of result doesn't matter.

query rowsort
select office_hour, count(*) from __mock_table_tas_2024 group by office_hour;
select office_hour, count(*) from __mock_table_tas_2024_fall group by office_hour;
----
Tuesday 2
Friday 2
Monday 2
Yesterday 1
Monday 1
Wednesday 1
Thursday 2

Expand Down
7 changes: 3 additions & 4 deletions test/sql/p3.10-simple-join.slt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ set force_optimizer_starter_rule=yes

query rowsort
select * from
__mock_table_tas_2024 inner join __mock_table_schedule
__mock_table_tas_2024_fall inner join __mock_table_schedule
on office_hour = day_of_week
where has_lecture = 1;
----
lanlou1554 Wednesday Wednesday 1
SDTheSlayer Monday Monday 1
thelongmarch-azx Monday Monday 1
lanlou1554 Monday Monday 1
17zhangw Wednesday Wednesday 1


# The real test begins...
Expand Down
2 changes: 1 addition & 1 deletion test/sql/p3.12-repeat-execute.slt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 5 pts
# 4 pts
# Put everything on the right side of NLJ

statement ok
Expand Down
3 changes: 1 addition & 2 deletions test/sql/p3.13-nested-index-join.slt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# --- NOT TESTED IN Fall 2023 ---
no test
# 6 pts

statement ok
set force_optimizer_starter_rule=yes
Expand Down
9 changes: 4 additions & 5 deletions test/sql/p3.14-hash-join.slt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# 5 pts
# 4 pts

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

query rowsort +ensure:hash_join
select * from
__mock_table_tas_2024 inner join __mock_table_schedule
__mock_table_tas_2024_fall inner join __mock_table_schedule
on office_hour = day_of_week
where has_lecture = 1;
----
SDTheSlayer Monday Monday 1
thelongmarch-azx Monday Monday 1
lanlou1554 Wednesday Wednesday 1
lanlou1554 Monday Monday 1
17zhangw Wednesday Wednesday 1


# The real test begins...
Expand Down
Loading

0 comments on commit 1f1a8a0

Please sign in to comment.