ClickHouse/tests/queries/0_stateless/02035_isNull_isNotNull_format.reference
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

15 lines
482 B
Plaintext

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