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

Minimize creating redundant copied predicates

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 10.0
    • None
    • Query Engine
    • None

      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

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: