ClickHouse/tests/queries/0_stateless/02035_isNull_isNotNull_format.sql
Azat Khuzhin e1b6acfa52 Add missing parenthesis for isNotNull/isNull rewrites to IS [NOT] NULL
After #29446 the following query was "broken":

    select isNotNull(1)+isNotNull(2) from remote('127.2', system.one)

This was also a problem for queries to external storages (i.e. mysql),
since it also uses query rewrite, like non-local distributed queries.

Fixes: #29446
2021-10-21 21:18:00 +03:00

8 lines
312 B
SQL

-- { echo }
explain syntax select null is null;
explain syntax select null is not null;
explain syntax select isNull(null);
explain syntax select isNotNull(null);
explain syntax select isNotNull(1)+isNotNull(2) from remote('127.2', system.one);
select isNotNull(1)+isNotNull(2) from remote('127.2', system.one);