morrySnow commented on code in PR #66050:
URL: https://github.com/apache/doris/pull/66050#discussion_r3654177520


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/RegexpExtractAll.java:
##########
@@ -61,7 +74,7 @@ private RegexpExtractAll(ScalarFunctionParams functionParams) 
{
      */
     @Override
     public RegexpExtractAll withChildren(List<Expression> children) {
-        Preconditions.checkArgument(children.size() == 2);
+        Preconditions.checkArgument(children.size() == 2 || children.size() == 
3);

Review Comment:
   ```suggestion
           Preconditions.checkArgument(children.size() == 3);
   ```



##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/RegexpExtractAllArray.java:
##########
@@ -64,7 +77,7 @@ private RegexpExtractAllArray(ScalarFunctionParams 
functionParams) {
      */
     @Override
     public RegexpExtractAllArray withChildren(List<Expression> children) {
-        Preconditions.checkArgument(children.size() == 2);
+        Preconditions.checkArgument(children.size() == 2 || children.size() == 
3);

Review Comment:
   ```suggestion
           Preconditions.checkArgument(children.size() == 3);
   ```



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