-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update project-3.yaml; add leaderboard for q1 window (#641)
* update project-3.yaml; add leaderboard for q1 window; fix window function refsol Signed-off-by: AveryQi115 <[email protected]> * change leaderboard q3.1 Signed-off-by: AveryQi115 <[email protected]> * update leaderboard q3.1 Signed-off-by: AveryQi115 <[email protected]> --------- Signed-off-by: AveryQi115 <[email protected]>
- Loading branch information
1 parent
004761a
commit cd34aec
Showing
3 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
statement ok | ||
explain (o) select x, y from ( | ||
select x, y, rank() over (partition by x order by y) as rank | ||
from __mock_t9 | ||
) where rank <= 3; | ||
|
||
query nosort +timing:x10:.q1 | ||
select * from ( | ||
select x, y from ( | ||
select x, y, rank() over (partition by x order by y) as rank | ||
from __mock_t9 | ||
) where rank <= 3 | ||
) order by y limit 10; | ||
---- | ||
0 0 | ||
0 0 | ||
0 1 | ||
0 1 | ||
1 5000 | ||
1 5000 | ||
1 5002 | ||
1 5002 | ||
1 5002 | ||
1 5002 |