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

Query containing set operations (UNION/MINUS/INTERSECT) would cause infinite loop in materialization substitution

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.11.0
    • Fix Version/s: 1.12.0
    • Component/s: core
    • Labels:
      None

      Description

      Example: select a from t1 union all select a from t2 where materialized views are defined on t1 and/or t2.
      This is because MutableMultiRel, being super class of MutableSetOp, did not set "parent" and "ordinal" for its input rels.

        Activity

        Hide
        maryannxue Maryann Xue added a comment -

        Could you please take a look at https://github.com/apache/calcite/pull/398, Julian Hyde? This is the issue causing one of the hanging tests in Calcite-Phoenix (cc Rajeshbabu Chintaguntla).

        Show
        maryannxue Maryann Xue added a comment - Could you please take a look at https://github.com/apache/calcite/pull/398 , Julian Hyde ? This is the issue causing one of the hanging tests in Calcite-Phoenix (cc Rajeshbabu Chintaguntla ).
        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/785c2fbe .
        Hide
        julianhyde Julian Hyde added a comment -

        Resolved in release 1.12.0 (2017-03-24).

        Show
        julianhyde Julian Hyde added a comment - Resolved in release 1.12.0 (2017-03-24).

          People

          • Assignee:
            maryannxue Maryann Xue
            Reporter:
            maryannxue Maryann Xue
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development