Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16493

Calcite engine. Decorrelation after subquery rewrite

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m