Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Currently decorrelation is performed in SqlToRelConverter, but after this PlannerPhase.HEP_DECORRELATE planning phase is executed (which actually rewrites subqueries into correlates, but doesn't perform decorrelation). In some cases, other types of join can cost less than correlated nested loop join, so we can try to decorrelate the query plan again after PlannerPhase.HEP_DECORRELATE phase (call RelDecorrelator.decorrelateQuery).
PlannerPhase.HEP_DECORRELATE should be also renamed to something like "HEP_REWRITE_SUBQUERY".
Attachments
Issue Links
- is part of
-
IGNITE-12248 Apache Calcite based query execution engine
- Open
- relates to
-
IGNITE-22092 Sql. Implement subquery decorrelation
- Open
-
IGNITE-21579 Sql. Investigate performance bottlenecks in sql engine
- Resolved
- links to