Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4943

Minimize creating redundant copied predicates

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 10.0
    • Component/s: Query Engine
    • Labels:
      None

      Description

      When an inner join with a predicate that can be copied is pushed, we will still create the copied criteria. In some situations, this over-constraining is not desirable. We should minimize when this occurs. For example:

      select col1 from t1, t2 where t1.col = t2.col and t1.col = 1

      should pushdown as:

      select col1 from t1, t2 where t1.col = t2.col and t1.col = 1

      not:

      select col1 from t1, t2 where t1.col = t2.col and t1.col = 1 and t2.col = 1

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                shawkins Steven Hawkins
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: