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
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.
Steps to Reproduce
DROPTABLE IF EXISTS t0;
CREATETABLEt0(c0 VARCHAR, c1 BOOLEAN, PRIMARY KEY(c0)); -- PK is neededINSERT INTO t0 (c0, c1) VALUES ('a', true);
REFRESH TABLE t0;
SELECT*FROM t0; -- 'a' TRUESELECT (t0.c1) OR (t0.c0='b') FROM t0; -- TRUESELECT*FROM t0 WHERE (t0.c1) OR (t0.c0='b');
-- Expected: 'a' TRUE-- Actual: empty table
Activity
Fix PK lookup with OR and non-PK column
Fix PK lookup with OR and non-PK column
Fix PK lookup with OR and non-PK column
Fix PK lookup with OR and non-PK column
Fix PK lookup with OR and non-PK column
Fix PK lookup with OR and non-PK column
matriv commentedon Feb 26, 2024
Thx a lot for reporting this issue @suyZhong, the fix will be available with the next hotfix release.