USE tpch1; create table if not exists MCOL657 (a int, b int) engine=columnstore; insert into MCOL657 values (1,1), (2,2), (3,4), (NULL, NULL), (NULL, 2), (3, NULL); select * from MCOL657 where a = b OR (a IS NULL AND b IS NULL); a b 1 1 2 2 NULL NULL select * from MCOL657 where a<=>b; a b 1 1 2 2 NULL NULL drop table MCOL657;