You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "mrhhsg (via GitHub)" <gi...@apache.org> on 2023/11/23 11:21:03 UTC

[PR] [refactor](if_function) handle result status of function [doris]

mrhhsg opened a new pull request, #27491:
URL: https://github.com/apache/doris/pull/27491

   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "mrhhsg (via GitHub)" <gi...@apache.org>.
mrhhsg commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1824254356

   run buildall


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1825101589

   
   <details>
   <summary>TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'</summary>
   
   ```
   Tpch sf100 test result on commit 79276ce5cce46e5e60c2569f9fcaddca22f2fb2b, data reload: false
   
   run tpch-sf100 query with default conf and session variables
   q1	4906	4646	4690	4646
   q2	375	178	160	160
   q3	2035	1870	1855	1855
   q4	1399	1247	1213	1213
   q5	3929	3958	4042	3958
   q6	252	132	132	132
   q7	1434	884	878	878
   q8	2771	2789	2768	2768
   q9	56295	9756	9452	9452
   q10	11970	3524	3504	3504
   q11	376	245	249	245
   q12	1399	286	294	286
   q13	13948	3766	3832	3766
   q14	322	298	288	288
   q15	593	529	527	527
   q16	663	585	585	585
   q17	1144	958	915	915
   q18	7814	7340	7369	7340
   q19	1719	1683	1669	1669
   q20	527	310	306	306
   q21	7433	4047	3989	3989
   q22	472	374	386	374
   Total cold run time: 121776 ms
   Total hot run time: 48856 ms
   
   run tpch-sf100 query with default conf and set session variable runtime_filter_mode=off
   q1	4644	4590	4613	4590
   q2	347	234	278	234
   q3	4020	3991	3973	3973
   q4	2703	2688	2683	2683
   q5	9781	9804	9663	9663
   q6	247	125	125	125
   q7	3010	2506	2501	2501
   q8	4474	4461	4451	4451
   q9	12896	27532	12814	12814
   q10	10411	4169	4149	4149
   q11	811	639	644	639
   q12	1005	811	827	811
   q13	4270	3558	3580	3558
   q14	377	344	342	342
   q15	569	517	518	517
   q16	733	666	657	657
   q17	3876	3971	3895	3895
   q18	9705	9043	9097	9043
   q19	1819	1785	1798	1785
   q20	2373	2089	2037	2037
   q21	8835	8581	8606	8581
   q22	906	802	757	757
   Total cold run time: 87812 ms
   Total hot run time: 77805 ms
   ```
   </details>
   


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1825105921

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 45.31 seconds
    stream load tsv:          568 seconds loaded 74807831229 Bytes, about 125 MB/s
    stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
    insert into select:          29.4 seconds inserted 10000000 Rows, about 340K ops/s
    storage size: 17096911007 Bytes


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "HappenLee (via GitHub)" <gi...@apache.org>.
HappenLee commented on code in PR #27491:
URL: https://github.com/apache/doris/pull/27491#discussion_r1404383183


##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@ class FunctionIf : public IFunction {
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,
+                                      const ColumnWithTypeAndName& arg_cond,
+                                      const ColumnWithTypeAndName& arg_then,
+                                      const ColumnWithTypeAndName& arg_else, size_t result,
+                                      size_t input_rows_count, bool& handled) const {
         bool then_is_null = arg_then.column->only_null();
         bool else_is_null = arg_else.column->only_null();
 
+        handled = false;

Review Comment:
   seems no need set hanled false here ? out the function have already set the `false` only need set `true` in all the excute function



-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "mrhhsg (via GitHub)" <gi...@apache.org>.
mrhhsg commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1825043028

   run buildall


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei merged PR #27491:
URL: https://github.com/apache/doris/pull/27491


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "HappenLee (via GitHub)" <gi...@apache.org>.
HappenLee commented on code in PR #27491:
URL: https://github.com/apache/doris/pull/27491#discussion_r1404383183


##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@ class FunctionIf : public IFunction {
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,
+                                      const ColumnWithTypeAndName& arg_cond,
+                                      const ColumnWithTypeAndName& arg_then,
+                                      const ColumnWithTypeAndName& arg_else, size_t result,
+                                      size_t input_rows_count, bool& handled) const {
         bool then_is_null = arg_then.column->only_null();
         bool else_is_null = arg_else.column->only_null();
 
+        handled = false;

Review Comment:
   seems no need set hanled false here ? out the function have already set the `false`



##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@ class FunctionIf : public IFunction {
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,
+                                      const ColumnWithTypeAndName& arg_cond,
+                                      const ColumnWithTypeAndName& arg_then,
+                                      const ColumnWithTypeAndName& arg_else, size_t result,
+                                      size_t input_rows_count, bool& handled) const {
         bool then_is_null = arg_then.column->only_null();
         bool else_is_null = arg_else.column->only_null();
 
+        handled = false;

Review Comment:
   seems no need set hanled false here ? out the function have already set the `false`



-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1825640737

   PR approved by at least one committer and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1824445258

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 43.57 seconds
    stream load tsv:          582 seconds loaded 74807831229 Bytes, about 122 MB/s
    stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          34 seconds loaded 861443392 Bytes, about 24 MB/s
    insert into select:          28.6 seconds inserted 10000000 Rows, about 349K ops/s
    storage size: 17098488936 Bytes


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1824429963

   
   <details>
   <summary>TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'</summary>
   
   ```
   Tpch sf100 test result on commit 913488c54a8f22146cc1644e1074177cd80b9a1a, data reload: false
   
   run tpch-sf100 query with default conf and session variables
   q1	4909	4711	4635	4635
   q2	364	150	161	150
   q3	2023	1892	1904	1892
   q4	1381	1247	1261	1247
   q5	3968	3952	4044	3952
   q6	245	128	127	127
   q7	1430	864	872	864
   q8	2778	2798	2777	2777
   q9	9678	9657	9461	9461
   q10	3495	3525	3507	3507
   q11	377	243	234	234
   q12	433	291	294	291
   q13	4583	3814	3786	3786
   q14	320	288	298	288
   q15	583	533	514	514
   q16	664	586	581	581
   q17	1144	982	934	934
   q18	7862	7289	7358	7289
   q19	1679	1678	1687	1678
   q20	545	304	341	304
   q21	4419	3954	4003	3954
   q22	482	381	371	371
   Total cold run time: 53362 ms
   Total hot run time: 48836 ms
   
   run tpch-sf100 query with default conf and set session variable runtime_filter_mode=off
   q1	4602	4583	4600	4583
   q2	329	232	251	232
   q3	4020	4003	3979	3979
   q4	2718	2701	2700	2700
   q5	9615	9685	9550	9550
   q6	245	126	127	126
   q7	3036	2492	2478	2478
   q8	4476	4460	4423	4423
   q9	13038	12920	13011	12920
   q10	4090	4150	4151	4150
   q11	778	648	655	648
   q12	972	820	808	808
   q13	4323	3600	3592	3592
   q14	383	360	339	339
   q15	570	528	513	513
   q16	726	672	686	672
   q17	3941	3806	3953	3806
   q18	9481	8986	9058	8986
   q19	1845	1915	1784	1784
   q20	2400	2060	2056	2056
   q21	8857	8452	8772	8452
   q22	857	778	820	778
   Total cold run time: 81302 ms
   Total hot run time: 77575 ms
   ```
   </details>
   


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #27491:
URL: https://github.com/apache/doris/pull/27491#discussion_r1403250341


##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,

Review Comment:
   warning: function 'execute_for_null_then_else' exceeds recommended size/complexity thresholds [readability-function-size]
   ```cpp
       Status execute_for_null_then_else(FunctionContext* context, Block& block,
              ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/vec/functions/if.cpp:323:** 95 lines including whitespace and comments (threshold 80)
   ```cpp
       Status execute_for_null_then_else(FunctionContext* context, Block& block,
              ^
   ```
   
   </details>
   



##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@ class FunctionIf : public IFunction {
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,

Review Comment:
   warning: method 'execute_for_null_then_else' can be made static [readability-convert-member-functions-to-static]
   
   ```suggestion
       static Status execute_for_null_then_else(FunctionContext* context, Block& block,
   ```
   
   be/src/vec/functions/if.cpp:327:
   ```diff
   -                                       size_t input_rows_count, bool& handled) const {
   +                                       size_t input_rows_count, bool& handled) {
   ```
   



##########
be/src/vec/functions/if.cpp:
##########
@@ -498,35 +496,39 @@
                      {get_nested_column(arg_else.column), remove_nullable(arg_else.type), ""},
                      {nullptr, remove_nullable(block.get_by_position(result).type), ""}});
 
-            static_cast<void>(_execute_impl_internal(context, temporary_block, {0, 1, 2}, 3,
-                                                     temporary_block.rows()));
+            RETURN_IF_ERROR(_execute_impl_internal(context, temporary_block, {0, 1, 2}, 3,
+                                                   temporary_block.rows()));
 
             result_nested_column = temporary_block.get_by_position(3).column;
         }
 
         auto column = ColumnNullable::create(materialize_column_if_const(result_nested_column),
                                              materialize_column_if_const(result_null_mask));
         block.replace_by_position(result, std::move(column));
-        return true;
+        handled = true;
+        return Status::OK();
     }
 
-    bool execute_for_null_condition(FunctionContext* context, Block& block,
-                                    const ColumnNumbers& arguments,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result) const {
+    Status execute_for_null_condition(FunctionContext* context, Block& block,

Review Comment:
   warning: method 'execute_for_null_condition' can be made static [readability-convert-member-functions-to-static]
   
   ```suggestion
       static Status execute_for_null_condition(FunctionContext* context, Block& block,
   ```
   
   be/src/vec/functions/if.cpp:516:
   ```diff
   -                                       bool& handled) const {
   +                                       bool& handled) {
   ```
   



##########
be/src/vec/functions/if.cpp:
##########
@@ -414,41 +412,41 @@
                                     input_rows_count);
                 }
             } else {
-                status = Status::InternalError(
+                return Status::InternalError(
                         "Illegal column {} of first argument of function {}. Must be ColumnUInt8 "
                         "or ColumnConstUInt8.",
                         arg_cond.column->get_name(), get_name());
             }
-            return true;
         }
-
-        return false;
+        handled = true;
+        return Status::OK();
     }
 
-    bool execute_for_nullable_then_else(FunctionContext* context, Block& block,
-                                        const ColumnWithTypeAndName& arg_cond,
-                                        const ColumnWithTypeAndName& arg_then,
-                                        const ColumnWithTypeAndName& arg_else, size_t result,
-                                        size_t input_rows_count) const {
+    Status execute_for_nullable_then_else(FunctionContext* context, Block& block,

Review Comment:
   warning: function 'execute_for_nullable_then_else' exceeds recommended size/complexity thresholds [readability-function-size]
   ```cpp
       Status execute_for_nullable_then_else(FunctionContext* context, Block& block,
              ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/vec/functions/if.cpp:424:** 81 lines including whitespace and comments (threshold 80)
   ```cpp
       Status execute_for_nullable_then_else(FunctionContext* context, Block& block,
              ^
   ```
   
   </details>
   



##########
be/src/vec/functions/if.cpp:
##########
@@ -414,41 +412,41 @@
                                     input_rows_count);
                 }
             } else {
-                status = Status::InternalError(
+                return Status::InternalError(
                         "Illegal column {} of first argument of function {}. Must be ColumnUInt8 "
                         "or ColumnConstUInt8.",
                         arg_cond.column->get_name(), get_name());
             }
-            return true;
         }
-
-        return false;
+        handled = true;
+        return Status::OK();
     }
 
-    bool execute_for_nullable_then_else(FunctionContext* context, Block& block,
-                                        const ColumnWithTypeAndName& arg_cond,
-                                        const ColumnWithTypeAndName& arg_then,
-                                        const ColumnWithTypeAndName& arg_else, size_t result,
-                                        size_t input_rows_count) const {
+    Status execute_for_nullable_then_else(FunctionContext* context, Block& block,

Review Comment:
   warning: method 'execute_for_nullable_then_else' can be made static [readability-convert-member-functions-to-static]
   
   ```suggestion
       static Status execute_for_nullable_then_else(FunctionContext* context, Block& block,
   ```
   
   be/src/vec/functions/if.cpp:428:
   ```diff
   -                                           size_t input_rows_count, bool& handled) const {
   +                                           size_t input_rows_count, bool& handled) {
   ```
   



-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27491:
URL: https://github.com/apache/doris/pull/27491#issuecomment-1825640802

   PR approved by anyone and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [refactor](if_function) handle result status of function [doris]

Posted by "mrhhsg (via GitHub)" <gi...@apache.org>.
mrhhsg commented on code in PR #27491:
URL: https://github.com/apache/doris/pull/27491#discussion_r1404440531


##########
be/src/vec/functions/if.cpp:
##########
@@ -321,23 +321,25 @@ class FunctionIf : public IFunction {
                                                       else_col.type->get_type_id(), call);
     }
 
-    bool execute_for_null_then_else(FunctionContext* context, Block& block,
-                                    const ColumnWithTypeAndName& arg_cond,
-                                    const ColumnWithTypeAndName& arg_then,
-                                    const ColumnWithTypeAndName& arg_else, size_t result,
-                                    size_t input_rows_count, Status& status) const {
+    Status execute_for_null_then_else(FunctionContext* context, Block& block,
+                                      const ColumnWithTypeAndName& arg_cond,
+                                      const ColumnWithTypeAndName& arg_then,
+                                      const ColumnWithTypeAndName& arg_else, size_t result,
+                                      size_t input_rows_count, bool& handled) const {
         bool then_is_null = arg_then.column->only_null();
         bool else_is_null = arg_else.column->only_null();
 
+        handled = false;

Review Comment:
   I think assigning it a value of false might be safer and will not affect the performance.



-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org