Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-68

Add hint "NO_STAR_JOIN" to indicate if star join optimization should be avoided for multi inner join queries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • None
    • None

    Description

      We enable a SQL hint called "NO_STAR_JOIN" to allow for choosing different execution plans for multi inner join queries.

      For example:
      select * from A inner join B on A.ab_id = B.ab_id inner join C on A.ac_id = C.ac_id and B.bc_id = C.bc_id;

      When using star-join optimization, the execution steps will be like:
      hash B, hash C --> join A

      If star-join is turned off, the execution steps will be like:
      hash A --> join B --> hash temp result AB --> join C

      Attachments

        Activity

          People

            maryannxue Wei Xue
            maryannxue Wei Xue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified