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

where clause optimization in join queries work not well

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.8.0
    • None
    • None
    • None

    Description

      select * from xxx x join yyy y on x.col1=y.col1 where x.col1='1'
      select * from xxx x join yyy y on x.col1=y.col1 where y.col1='1'

      the column "col1" is the primary key for table "xxx" and table "yyy"

      the above SQL do full scan over either table "xxx" or "yyy". if the join compiler take where clause into account, this can be optimized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            co2y wangweiyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: