zhiqiang-hhhh commented on code in PR #47392:
URL: https://github.com/apache/doris/pull/47392#discussion_r1928426539


##########
be/src/vec/functions/function_case.h:
##########
@@ -173,16 +173,9 @@ class FunctionCase : public IFunction {
                         break;
                     }
                 } else {
-                    if constexpr (when_null) {
-                        if (!then_idx_ptr[row_idx] && 
when_column_ptr->get_bool(row_idx)) {
-                            then_idx_ptr[row_idx] = i;
-                            break;
-                        }
-                    } else {
-                        if (!then_idx_ptr[row_idx]) {
-                            then_idx_ptr[row_idx] = i;
-                            break;
-                        }
+                    if (!then_idx_ptr[row_idx] && 
when_column_ptr->get_bool(row_idx)) {

Review Comment:
   这里的判断条件跟 256 是什么关系呢?为啥超过 256 的时候之前的代码会有问题



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to