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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Planner/Optimizer
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: