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

Incorrectly set the range start when filtering by the minimum value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.2.0
    • Query Engine
    • None

    Description

      Before defining a range of a scan, the range start may be not correct in the following case:

      OR [
            AND [
                    a <= 3,
                    b = 2
            ],
            AND [
                    a = 0, (note that 0 is the minimum of a)
                    b = 1
            ]
      ]
      

      In this case, kylin will generate two ranges:

      [null,2] - [3, 2]
          [0,1] - [0,1]
      

      There's a rule when merging ranges. If the range start is null, it will be ordered before others whose range start is not null. Then the merged range of these two ranges will be
      [null,2] - [3, 2].
      Replacing null with 0, the range sent to coprocessor will be
      [0,2] - [3, 2].
      However, it should be
      [0,1] - [3, 2]
      and the rule should be refined.

      Attachments

        Activity

          People

            yaho Zhong Yanghong
            yaho Zhong Yanghong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: