mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #39305 from ClickHouse/window-case-test
Add test for window function inside CASE
This commit is contained in:
commit
855ad30a5d
10
tests/queries/0_stateless/02364_window_case.reference
Normal file
10
tests/queries/0_stateless/02364_window_case.reference
Normal file
@ -0,0 +1,10 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
4
tests/queries/0_stateless/02364_window_case.sql
Normal file
4
tests/queries/0_stateless/02364_window_case.sql
Normal file
@ -0,0 +1,4 @@
|
||||
SELECT CASE
|
||||
WHEN sum(number) over () > 0 THEN number + 1
|
||||
ELSE 0 END
|
||||
FROM numbers(10)
|
Loading…
Reference in New Issue
Block a user