mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #41425 from den-crane/test/issue_41394
test for #41394
This commit is contained in:
commit
f50378d551
@ -0,0 +1,3 @@
|
||||
0 1
|
||||
-2 2
|
||||
-2 2
|
5
tests/queries/0_stateless/01655_window_functions_bug.sql
Normal file
5
tests/queries/0_stateless/01655_window_functions_bug.sql
Normal file
@ -0,0 +1,5 @@
|
||||
SELECT round((countIf(rating = 5)) - (countIf(rating < 5)), 4) as nps,
|
||||
dense_rank() OVER (ORDER BY nps DESC) as rank
|
||||
FROM (select number as rating, number%3 rest_id from numbers(10))
|
||||
group by rest_id
|
||||
order by rank;
|
Loading…
Reference in New Issue
Block a user