Description
Currently we do optimization for join queries inside QueryCompiler, which makes the APIs and code logic confusing, so we need to move join optimization logic into QueryOptimizer.
Similarly, but probably with a different approach, we need to optimize UNION ALL queries and derived table sub-queries in QueryOptimizer.optimize().
Please also refer to this comment:
Attachments
Attachments
Issue Links
- is depended upon by
-
PHOENIX-4617 Make sure QueryPlan.getSourceRefs() get all data table refs for join queries and sub-queries
- Resolved