mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Add a test for #16231
This commit is contained in:
parent
7986dbdfc7
commit
c496aaddb2
1
tests/queries/0_stateless/01556_if_null.reference
Normal file
1
tests/queries/0_stateless/01556_if_null.reference
Normal file
@ -0,0 +1 @@
|
|||||||
|
([1],[5]) 4 4
|
5
tests/queries/0_stateless/01556_if_null.sql
Normal file
5
tests/queries/0_stateless/01556_if_null.sql
Normal 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);
|
Loading…
Reference in New Issue
Block a user