Merge pull request #16673 from ClickHouse/test-null-if

Add a test for #16231
This commit is contained in:
alexey-milovidov 2020-11-05 12:14:48 +03:00 committed by GitHub
commit 56786cdb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
([1],[5]) 4 4

View File

@ -0,0 +1,5 @@
SELECT
sumMapIf([1], [1], nullIf(number, 3) > 0) AS col1,
countIf(1, nullIf(number, 3) > 0) AS col2,
sumIf(1, nullIf(number, 3) > 0) AS col3
FROM numbers(1, 5);