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

Sql. Implement subquery decorrelation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • sql

    Description

      Rewriting correlated subqueries provides significant performance boost by removing redundant loops during execution and by allowing subsequent optimisations of flattened plans during planning.

      P.S.

      Apache calcite provides some means to decorrelate subqueries (via `RelDecorrelator`) but unfortunetly they are:

      • produce incorrect results (see https://issues.apache.org/jira/browse/IGNITE-16493 where decorrelating subquery produces incorrect result because a resulting plan contains a join with `equality` instead of is `not distinct from` predicate (thus breaking queries for tables that contain NULLs).
      • limited in scope.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mzhuravkov Maksim Zhuravkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: