ClickHouse/tests/queries/0_stateless/01650_any_null_if.sql

7 lines
316 B
MySQL
Raw Normal View History

2021-01-12 19:53:58 +00:00
SELECT any(nullIf(s, '')) FROM (SELECT arrayJoin(['', 'Hello']) AS s);
2021-01-12 19:58:54 +00:00
SET optimize_move_functions_out_of_any = 0;
EXPLAIN SYNTAX select any(nullIf('', ''), 'some text'); -- { serverError 42 }
SET optimize_move_functions_out_of_any = 1;
EXPLAIN SYNTAX select any(nullIf('', ''), 'some text'); -- { serverError 42 }