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

Remove OneRow and Empty relational expressions; Values will suffice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0-incubating
    • None
    • None

    Description

      The OneRow and Empty relational expressions do not give any descriptive power over a Values relational expression with 1 tuple and 0 tuples, respectively. We should remove them (and their sub-classes).

      Now that RelOptRuleOperand can take a Predicate, it is easy to write rules that match a Values that has zero tuples.

      Benefits include efficiency (the planning process will creature fewer relational expressions) and rule re-use (rules applicable to Values are now automatically applicable to 1- and 0-row relational expressions).

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: