[ https://issues.apache.org/jira/browse/PHOENIX-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831290#comment-15831290 ]
Ankit Singhal commented on PHOENIX-3608: ---------------------------------------- Good find [~chrajeshbab...@gmail.com], +1 > KeyRange interset should return EMPTY_RANGE when one of it is NULL_RANGE > ------------------------------------------------------------------------ > > Key: PHOENIX-3608 > URL: https://issues.apache.org/jira/browse/PHOENIX-3608 > Project: Phoenix > Issue Type: Bug > Reporter: Rajeshbabu Chintaguntla > Assignee: Rajeshbabu Chintaguntla > Fix For: 4.10.0, 4.8.2 > > Attachments: PHOENIX-3608.patch > > > 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. > {noformat} > if (this == IS_NULL_RANGE) { > if (range == IS_NULL_RANGE) { > return IS_NULL_RANGE; > } > return EMPTY_RANGE; > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)