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

Simplify AND and OR conditions using predicates

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0
    • Component/s: None
    • Labels:
      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

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: