ClickHouse/tests/queries/0_stateless/02751_multiif_to_if_crash.sql

4 lines
168 B
SQL

SELECT sum(A) FROM (SELECT multiIf(1, 1, NULL) as A);
SELECT sum(multiIf(number = NULL, 65536, 3)) FROM numbers(3);
SELECT multiIf(NULL, 65536 :: UInt32, 3 :: Int32);