We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8029130 commit 9f9ae5fCopy full SHA for 9f9ae5f
1 file changed
be/src/vec/functions/function_regexp.cpp
@@ -64,7 +64,11 @@ struct RegexpExtractEngine {
64
// Try to compile with RE2 first, fallback to Boost.Regex if RE2 fails
65
static bool compile(const StringRef& pattern, std::string* error_str,
66
RegexpExtractEngine& engine, bool enable_extended_regex) {
67
- engine.re2_regex = std::make_unique<re2::RE2>(re2::StringPiece(pattern.data, pattern.size));
+ re2::RE2::Options options;
68
+ options.set_log_errors(false); // avoid RE2 printing to stderr; we handle errors ourselves
69
+ engine.re2_regex =
70
+ std::make_unique<re2::RE2>(re2::StringPiece(pattern.data, pattern.size), options);
71
+
72
if (engine.re2_regex->ok()) {
73
return true;
74
} else if (!enable_extended_regex) {
0 commit comments