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
{{ message }}
Repository navigation
Query: Improve how SelectExpression performs join to preserve sufficient metadata for binding #8094
At present our code to lift subquery is not streamlined. We have QueryModelVisitor.IsLiftable flag after which we also have other checks which determines if we can lift subquery or not. And even after all these checks, we still sometimes fails to lift subquery during joins.
Moreover the way our AddJoinFamily works is, it takes the first table from inner select expression and add it as joinexpression. This is in a way side effect of LiftSubQuery method which pushes down the select expression if is not identity query. When joins are lifted this all works fine but when join is not lifted, we end up with a select expression which was pushed down even if it was not required to.
We should be more accurate about when we want to push down subquery. We should do it only when we need it especially during AddJoin.
Activity
tuespetre commentedon Apr 11, 2017
Hmmmmm
28 remaining items
smitpatel commentedon Jan 25, 2019
SelectExpression will do the join rather than trying to do it outside in order to have access to private members.
smitpatel commentedon Jun 5, 2019
We have implemented this in new query pipeline. Now join are passed to SelectExpression for binding so that it can copy over internal metadata.