[Bugs] Fix some bugs (#6586)

* fix regex lazy

* fix result file core

* fix dynamic partition replica and table name length bug

* fix replicanum 0

* fix delete bug

* renew proxy

Co-authored-by: morningman <chenmingyu@baidu.com>
This commit is contained in:
Mingyu Chen
2021-09-10 09:53:30 +08:00
committed by GitHub
parent 5d3c7fbd80
commit b2f1e21a3b
26 changed files with 150 additions and 49 deletions

View File

@ -550,8 +550,9 @@ static re2::RE2* compile_regex(const StringVal& pattern, std::string* error_str,
re2::RE2::Options options;
// Disable error logging in case e.g. every row causes an error
options.set_log_errors(false);
// ATTN(cmy): no set it, or the lazy mode of regex won't work. See Doris #6587
// Return the leftmost longest match (rather than the first match).
options.set_longest_match(true);
// options.set_longest_match(true);
options.set_dot_nl(true);
if (!match_parameter.is_null &&
!StringFunctions::set_re2_options(match_parameter, error_str, &options)) {