BiteTheDDDDt commented on code in PR #57643:
URL: https://github.com/apache/doris/pull/57643#discussion_r2493194883


##########
be/src/vec/functions/like.cpp:
##########
@@ -1009,7 +1017,22 @@ Status FunctionRegexpLike::open(FunctionContext* context,
                 opts.set_dot_nl(true);
                 state->search_state.regex = std::make_unique<RE2>(pattern_str, 
opts);
                 if (!state->search_state.regex->ok()) {
-                    return Status::InternalError("Invalid regex expression: 
{}", pattern_str);
+                    if (!context->state()->enable_extended_regex()) {
+                        return Status::InternalError("Invalid regex 
expression: {}. Error: {}",

Review Comment:
   ditto



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