ClickHouse/tests/queries/0_stateless/00618_nullable_in.sql

15 lines
332 B
MySQL
Raw Normal View History

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
2021-05-27 21:21:02 +00:00
FROM
(
SELECT
toNullable('a') AS name,
arrayJoin(range(10)) AS x
)
WHERE name = 'a';