ClickHouse/tests/queries/0_stateless/03280_dynamic_if_null.sql

5 lines
103 B
SQL

set enable_dynamic_type = 1;
select ifNull(number % 2 ? NULL : number::Dynamic, 42) from numbers(5);