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

Simplify IN expression of discrete values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core

    Description

      For example, given expressions like

      a in (1, 2, 3, 4, 5)

      or

      a = 1 or a = 2 or a = 3 or a = 4 or a = 5,

      we can simplify it to

      a >= 1 and a <= 5

      Such simplification reduces the number of value comparisons from 5 to 2.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m