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
select*from t as t1
left join t as t2 -- or inner joinont1.f=t2.fwhere right(t1.f, 1) ='2'
DuckDB pushes down the right(...) filter to one of the ts but not both, missing the opportunity to multiple order of magnitude speedup. In my real world example, adding an extra
and right(t2.f, 1) ='2'
speeds up the query ~ 100x.
To Reproduce
createtablet (f string);
insert into t (f) values ('42'), ('43');
explain
select*from t as t1
left join t as t2
ont1.f=t2.fwhere right(t1.f, 1) ='2';
What happens?
When doing a self join like
DuckDB pushes down the
right(...)
filter to one of thet
s but not both, missing the opportunity to multiple order of magnitude speedup. In my real world example, adding an extraspeeds up the query ~ 100x.
To Reproduce
OS:
macOS
DuckDB Version:
0.9
DuckDB Client:
cli
Full Name:
Jonas Haag
Affiliation:
QuantCo
Have you tried this on the latest
main
branch?I have tested with a release build (and could not test with a main build)
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: