mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #16673 from ClickHouse/test-null-if
Add a test for #16231
This commit is contained in:
commit
56786cdb66
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