github-actions[bot] commented on code in PR #31312:
URL: https://github.com/apache/doris/pull/31312#discussion_r1500236990


##########
be/src/vec/functions/functions_multi_string_position.cpp:
##########
@@ -110,6 +106,11 @@ class FunctionMultiStringPosition : public IFunction {
         const ColumnConst* col_needles_const =
                 check_and_get_column_const<ColumnArray>(needles_ptr.get());
 
+        if (!col_needles_const && !col_needles_vector)

Review Comment:
   warning: statement should be inside braces 
[readability-braces-around-statements]
   
   ```suggestion
           if (!col_needles_const && !col_needles_vector) {
   ```
   
   be/src/vec/functions/functions_multi_string_position.cpp:111:
   ```diff
   -                     name, needles_column->get_name());
   +                     name, needles_column->get_name());
   + }
   ```
   



##########
be/src/vec/functions/functions_multi_string_search.cpp:
##########
@@ -108,6 +104,11 @@ class FunctionsMultiStringSearch : public IFunction {
         const ColumnConst* col_needles_const =
                 check_and_get_column_const<ColumnArray>(needles_ptr.get());
 
+        if (!col_needles_const && !col_needles_vector)

Review Comment:
   warning: statement should be inside braces 
[readability-braces-around-statements]
   
   ```suggestion
           if (!col_needles_const && !col_needles_vector) {
   ```
   
   be/src/vec/functions/functions_multi_string_search.cpp:109:
   ```diff
   -                     name, needles_column->get_name());
   +                     name, needles_column->get_name());
   + }
   ```
   



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