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
When we prune SelectExpression we find columns which are being referenced from outside to trim down projection in inner subqueries.
For Left/Inner join (which are also generated by TPT/entity splitting), we need to verify if the join is not used outside. In order to do that, we specifically process it differently and avoid adding terms from join predicate. Essentially, if the join says nothing is referenced from outside, it can be eliminated altogether which is what we do for tables marked for TPT/entity splitting. Though due to this, tables added by user will have no outer referenced columns hence we don't trim them. We can trim them to have only join predicate terms so that join continue working but doesn't give additional data.
This doesn't apply for any join which actually end up participating in outer level.
The text was updated successfully, but these errors were encountered:
When we prune SelectExpression we find columns which are being referenced from outside to trim down projection in inner subqueries.
For Left/Inner join (which are also generated by TPT/entity splitting), we need to verify if the join is not used outside. In order to do that, we specifically process it differently and avoid adding terms from join predicate. Essentially, if the join says nothing is referenced from outside, it can be eliminated altogether which is what we do for tables marked for TPT/entity splitting. Though due to this, tables added by user will have no outer referenced columns hence we don't trim them. We can trim them to have only join predicate terms so that join continue working but doesn't give additional data.
This doesn't apply for any join which actually end up participating in outer level.
The text was updated successfully, but these errors were encountered: