[ 
https://issues.apache.org/jira/browse/GEODE-7864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166982#comment-17166982
 ] 

ASF GitHub Bot commented on GEODE-7864:
---------------------------------------

nabarunnag commented on a change in pull request #5400:
URL: https://github.com/apache/geode/pull/5400#discussion_r461895424



##########
File path: 
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/CompactRangeIndex.java
##########
@@ -939,7 +939,7 @@ protected boolean evaluateEntry(IndexInfo indexInfo, 
ExecutionContext context, O
       // either of them is null and operator is other than == or !=
       if (result == QueryService.UNDEFINED) {
         // Undefined is added to results for != conditions only
-        if (operator != OQLLexerTokenTypes.TOK_NE || operator != 
OQLLexerTokenTypes.TOK_NE_ALT) {

Review comment:
       judging by this comment. 
   `// Undefined is added to results for != conditions only`

##########
File path: 
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/CompactRangeIndex.java
##########
@@ -939,7 +939,7 @@ protected boolean evaluateEntry(IndexInfo indexInfo, 
ExecutionContext context, O
       // either of them is null and operator is other than == or !=
       if (result == QueryService.UNDEFINED) {
         // Undefined is added to results for != conditions only
-        if (operator != OQLLexerTokenTypes.TOK_NE || operator != 
OQLLexerTokenTypes.TOK_NE_ALT) {

Review comment:
       This seems like a behavior change, sorry if i am missing something.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Code improvement refactoring
> ----------------------------
>
>                 Key: GEODE-7864
>                 URL: https://issues.apache.org/jira/browse/GEODE-7864
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Nabarun Nag
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 13h 10m
>  Remaining Estimate: 0h
>
> This is a placeholder ticket.
>  * this is used to do refactoring.
>  * this ticket number is used to number the commit message.
>  * this ticket will never be closed.
>  * it will be used to mark improvements like correcting spelling mistakes, 
> efficient java code, etc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to