This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ded88c6d570 [compile](gcc) fix compile error in gcc (#35547)
ded88c6d570 is described below
commit ded88c6d57035493caaf9da11001a8d6c71a409a
Author: lihangyu <[email protected]>
AuthorDate: Tue May 28 23:32:04 2024 +0800
[compile](gcc) fix compile error in gcc (#35547)
---
be/src/exprs/json_functions.cpp | 2 +-
be/src/util/string_util.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/exprs/json_functions.cpp b/be/src/exprs/json_functions.cpp
index 8fd5c2b0c4e..e83e25f7759 100644
--- a/be/src/exprs/json_functions.cpp
+++ b/be/src/exprs/json_functions.cpp
@@ -218,7 +218,7 @@ void JsonFunctions::parse_json_paths(const std::string&
path_string,
path_string, boost::escaped_list_separator<char>("\\", ".",
"\""));
std::vector<std::string> paths(tok.begin(), tok.end());
get_parsed_paths(paths, parsed_paths);
- } catch (boost::escaped_list_error err) {
+ } catch (const boost::escaped_list_error& err) {
throw doris::Exception(ErrorCode::INVALID_JSON_PATH, "meet error {}",
err.what());
}
}
diff --git a/be/src/util/string_util.h b/be/src/util/string_util.h
index 06d6d1edccf..a5837a538cc 100644
--- a/be/src/util/string_util.h
+++ b/be/src/util/string_util.h
@@ -141,7 +141,7 @@ auto get_json_token(T& path_string) {
try {
return boost::tokenizer<boost::escaped_list_separator<char>>(
path_string, boost::escaped_list_separator<char>("\\", ".",
"\""));
- } catch (boost::escaped_list_error err) {
+ } catch (const boost::escaped_list_error& err) {
throw doris::Exception(ErrorCode::INVALID_JSON_PATH, "meet error {}",
err.what());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]