Query: Lift table from subquery when joining if no additional operations #21321
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
When doing join, we pushdown the right SelectExpression if it has various operations applied to SelectExpression in order to apply them before join. One of them is existence of order by clause. But we also remove order by from subquery when there is no skip take as that ordering is irrelevant and lifted outside already. This causes a query to be pushed down but then erases order by so we have a flat select expression with projection and single table. We could avoid pushdown and generate flat join table.
The text was updated successfully, but these errors were encountered: