Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1965

Support outer joins for materialized views

    XMLWordPrintableJSON

Details

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

    Description

      Currently, only inner joins are supported for materialized view substitutions. The support for outer joins involves creating new pulled up predicates in case of outer joins that represent semantics of the join. For a join predicate like "a.id = b.id" the inner join just pulls up that predicate. When having a left join like e.g. select * from a left join b on a.id = b.id, the actual pulled up predicate would be OR(=(a.id, b.id),ISNULL(b.id)). For a right join it would be OR(=(a.id, b.id),ISNULL(a.id)) and for a full outer join it would be OR(=(a.id, b.id),ISNULL(a.id),ISNULL(b.id))

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              christian.beikov Christian Beikov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h