Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-1013

A complex equality condition including columns of the same table is recognized as a join condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.9.0
    • Planner/Optimizer
    • None

    Description

      See the following example:

      SELECT 
        t1.str1, t1.str2, t2.abc 
      FROM 
        table1 t1, table2 t2 
      WHERE t1.id = t2.id and substr(t1.str1, 1, 3) = substr(t1.str2, 1,3);
      

      Currently, the expression substr(t1.str1, 1, 3) = substr(t1.str2, 1,3); is also addressed as a join condition. Since it includes columns of the same table, we shouldn't do it.

      Attachments

        Activity

          People

            hyunsik Hyunsik Choi
            hyunsik Hyunsik Choi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: