Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4287

SegmentPruner cannot prune segment with "IN" or "OR" CompareTupleFilter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Engine
    • Labels:
      None

      Description

      build 2 segs, Segment[2012-01-01 - 2012-01-03]  And Segment[2012-01-03 - 2012-01-05]

      query: select sum(PRICE) from KYLIN_SALES
      where "KYLIN_SALES"."PART_DT" = DATE '2012-01-01'
      OR "KYLIN_SALES"."PART_DT" = DATE '2020-07-02'

      Expected results:segment[2012-01-03 - 2012-01-05] should not be scaned, it should be pruned by SegmentPruner

       

      but i found in method 'org.apache.kylin.cube.common.SegmentPruner#satisfy'

      when filter's operator is "In", satisfy segment[2012-01-03 - 2012-01-05] , the function return true

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhangbushi5 yangzhang
                Reporter:
                zhangbushi5 yangzhang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: