CrateDB version
version: crate-5.6.0-2023-11-21-14-52-f951788
CrateDB setup information
Manual build following the instructions here: https://github.com/crate/crate/blob/master/devs/docs/basics.rst
Also could reproduce in 5.5.0
Problem description
The third SELECT returns an empty result, which is surprising, given that the result of second query is TRUE. The value of the WHERE condition is TRUE, and thus the third query should return the whole table.
I suppose there are some issues concerning the || operator.
Steps to Reproduce
CREATE TABLE t0(c0 INT);
INSERT INTO t0(c0) VALUES (NULL);
SELECT * FROM t0; -- NULL
SELECT NOT (c0||0) < -1 FROM t0; -- TRUE
SELECT * FROM t0 WHERE NOT (c0||0)<-1;
-- Expected: NULL
-- Actual: Empty
Actual Result
Empty
Expected Result
NULL
CrateDB version
version: crate-5.6.0-2023-11-21-14-52-f951788
CrateDB setup information
Manual build following the instructions here: https://github.com/crate/crate/blob/master/devs/docs/basics.rst
Also could reproduce in 5.5.0
Problem description
The third
SELECTreturns an empty result, which is surprising, given that the result of second query isTRUE. The value of theWHEREcondition isTRUE, and thus the third query should return the whole table.I suppose there are some issues concerning the || operator.
Steps to Reproduce
Actual Result
Empty
Expected Result
NULL