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

Simplify AND and OR conditions using predicates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • None
    • None

    Description

      Simplify expressions like:

      a = 1 AND (a = 1 OR a = 2)

      to

      a = 1

      Conditions to apply will be:

      • in an AND condition there exists a comparison(c) and an OR (o)
      • o and c only reference 1 variable

      See HIVE-19097 for more info.

      Attachments

        Issue Links

          Activity

            People

              kgyrtkirk Zoltan Haindrich
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: