You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEt0(c1 INT);
CREATEINDEXi0ON t0(c1 );
INSERT INTO t0 (c1) VALUES (-1);
SELECT*FROM t0; -- -1SELECT (COT(-939932070)<c1) FROM t0; -- 1SELECT*FROM t0 WHERE (COT(-939932070)<c1);
-- Expected: -1-- Actual: empty
The third SELECT returns an empty result, which is surprising: If the result of second query is 1 (TRUE), the value of the COT should be less than c1, and thus the third query should return the row in t0.
These test cases works well in MySQL 8.0.33, however not in dolt.
I originally find this by building dolt from source version 804f1c1. It could also be reproduced in 1.26.1.
The text was updated successfully, but these errors were encountered:
Considering the test case below:
The third
SELECT
returns an empty result, which is surprising: If the result of second query is 1 (TRUE
), the value of theCOT
should be less thanc1
, and thus the third query should return the row int0
.These test cases works well in MySQL 8.0.33, however not in dolt.
I originally find this by building dolt from source version 804f1c1. It could also be reproduced in 1.26.1.
The text was updated successfully, but these errors were encountered: