ClickHouse/tests/queries/0_stateless/00618_nullable_in.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

15 lines
335 B
SQL

SELECT sum(toNullable('a') IN 'a');
SELECT countIf(number, toNullable('a') IN ('a', 'b')) FROM numbers(100);
SELECT
uniqExact(x) AS u,
uniqExactIf(x, name = 'a') AS ue,
uniqExactIf(x, name IN ('a', 'b')) AS ui
FROM
(
SELECT
toNullable('a') AS name,
arrayJoin(range(10)) AS x
)
WHERE name = 'a';