Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3608

KeyRange interset should return EMPTY_RANGE when one of it is NULL_RANGE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10.0, 4.8.2
    • Labels:
      None

      Description

      Currently KeyRange.intersect(KeyRange range) returning EMPTY_RANGE only when the left side key range is null and right side is not null but we should return EMPTY_RANGE when any of the key range is null.

              if (this == IS_NULL_RANGE) {
                  if (range == IS_NULL_RANGE) {
                       return IS_NULL_RANGE;
                  }
                   return EMPTY_RANGE;
               }
      

        Attachments

        1. PHOENIX-3608.patch
          0.9 kB
          Rajeshbabu Chintaguntla

          Activity

            People

            • Assignee:
              rajeshbabu Rajeshbabu Chintaguntla
              Reporter:
              rajeshbabu Rajeshbabu Chintaguntla
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: