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
Describe the bug
Trivially reusable intermediates are not reused.
To Reproduce
start transaction;
-- a small tablecreatetablet(value int);
insert into t values (0),(2),(1);
explain
SELECT*from t where value=0UNION ALLSELECT*from t where value=0;
The explain shows two distinct binds for the same column. Which means two distinct selects that are in fact identical. In real queries this can explode.
Describe the bug
Trivially reusable intermediates are not reused.
To Reproduce
The explain shows two distinct
bind
s for the same column. Which means two distinct selects that are in fact identical. In real queries this can explode.Expected behavior
Only one
bind
to columnvalue
is made and the associated variable used twice, leading to only one select.Software versions
The text was updated successfully, but these errors were encountered: