Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16085

Calcite engine. Index can't be used with IS NULL condition

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.15
    • None
    • SQL Calcite: Added support for index scans by IS NULL/IS NOT NULL conditions

    Description

      Currently, we support only EQUALS, LESS_THAN, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL conditions for index scans. Our indexes also can be scanned for null values by design, but full table scan now performed for IS NULL condition on indexed fields.
      Perhaps IS NOT NULL, IS TRUE, IS FALSE, IS NOT TRUE, IS NOT FALSE also can be used in index scan.
      Also, SortedSegmentedIndex#find method have lowerIncl and upperIncl parameters now, perhaps we can set they to false for LESS_THAN and GREATER_THAN operators to more effective index scans.

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: