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

Simplify predicate of JOIN, and optimize away LIMIT 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • None
    • None

    Description

      Following CALCITE-996, RelBuilder should simplify predicates in other situations, such as the and method and the join method.

      RelBuilder.filter(false) and RelBuilder.limit(0, 0) should simplify to RelBuilder.empty(), a new method that returns an empty relation. The default implementation returns a Values with no rows, but schema-on-query systems such as Drill might override the empty method.

      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: