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
It seems to project twice on temp table.
And I don't think it can handle more complex situations.
explain SELECT b FROM t1 WHERE a in (SELECT a FROM t2 where (select a from t1));
PLAN
-------------------------------------------------------------------
Projection [t1.b] [Project] +
LeftSemi JoinOnt1.a= (t2.a) as (_temp_table_2_.a) [HashJoin]+
Scan t1 -> [a, b] [SeqScan] +
Projection [(t2.a) as (_temp_table_2_.a)] [Project] +
Projection [t2.a] [Project] +Inner JoinWhere_temp_table_1_.a [HashJoin] +
Scan t2 -> [a] [SeqScan] +
Projection [(t2.a) as (_temp_table_1_.a)] [Project] +
Projection [t2.a] [Project] +
Scan t1 -> [] [SeqScan]
I think every query using their own binder context may be a solution, but it may be a big work.
KKould
changed the title
[Bug]In multi-level nested subquery, the field relationships of different tables are wrong.
Bug: In multi-level nested subquery, the field relationships of different tables are wrong.
Mar 17, 2024
Is there a lighter solution? Because in issue: #162, Binder::bind also takes up a considerable part of the performance overhead. Can it be solved by using last_bind_table or something like that?
Is there a lighter solution? Because in issue: #162, Binder::bind also takes up a considerable part of the performance overhead. Can it be solved by using last_bind_table or something like that?
I'm not familiar with this. I just find duckdb have a parent field for this. It seems to be organized like the plan.
Bug Report
#168 (comment)
The text was updated successfully, but these errors were encountered: