mrhhsg opened a new pull request, #70244: URL: https://github.com/apache/doris/pull/70244
## Summary With extended regular expressions enabled, restarting Boost.Regex searches on a shortened input can repeat a zero-width match and change the context seen by lookbehind and anchors. Iterate over the complete input with `boost::cregex_iterator` instead, while retaining the existing capture-group behavior and leaving the RE2 path unchanged. This backports the fix from #68358. ## Tests - `./build.sh --be --fe -j 16` — passed. - `BUILD_TYPE=ASAN DISABLE_BE_JAVA_EXTENSIONS=OFF ./build.sh --be -j 32` — passed. - `./run-be-ut.sh --run --filter=FunctionLikeTest.regexp_extract_all_boost_zero_width_match -j 32` — passed (1 test). - Local SQL regression: `query_p0/load` — passed (8 suites); `query_p0/sql_functions/string_functions/test_string_function_regexp` — passed (1 suite). - `build-support/clang-format.sh`, `build-support/check-format.sh`, and committed diff whitespace check — passed. -- 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]
