Merge pull request #39305 from ClickHouse/window-case-test

Add test for window function inside CASE
This commit is contained in:
Dmitry Novik 2022-07-18 16:10:11 +02:00 committed by GitHub
commit 855ad30a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
1
2
3
4
5
6
7
8
9
10

View File

@ -0,0 +1,4 @@
SELECT CASE
WHEN sum(number) over () > 0 THEN number + 1
ELSE 0 END
FROM numbers(10)