chenhao7253886 commented on a change in pull request #1516: Fix bug that <=> 
operator and in operator get wrong result
URL: https://github.com/apache/incubator-doris/pull/1516#discussion_r308509064
 
 

 ##########
 File path: be/src/exprs/binary_predicate.cpp
 ##########
 @@ -511,6 +543,114 @@ Status 
EqStringValPred::get_codegend_compute_fn(RuntimeState* state, llvm::Funct
     return get_codegend_compute_fn_wrapper(state, fn);
 }
 
+#define BINARY_PRED_FOR_NULL_FN(CLASS, TYPE, FN, OP, LLVM_PRED) \
+    BooleanVal CLASS::get_boolean_val(ExprContext* ctx, TupleRow* row) { \
+        TYPE v1 = _children[0]->FN(ctx, row); \
+        TYPE v2 = _children[1]->FN(ctx, row); \
+        if (v1.is_null && v2.is_null) { \
+            return BooleanVal(true); \
+        } else if (v1.is_null || v2.is_null) { \
+            return BooleanVal(false); \
+        } \
+        return BooleanVal(v1.val OP v2.val); \
+    } \
 
 Review comment:
   Ok, i will remove it.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to