This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-0.13 in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit 557b3d4ca67ea20033de60b72f5a3b797ec927f9 Author: HuangWei <huang...@apache.org> AuthorDate: Sat Sep 12 16:04:21 2020 +0800 [Bug] fix get_parsed_paths() subscript out of range (#4585) --- be/src/exprs/json_functions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/exprs/json_functions.cpp b/be/src/exprs/json_functions.cpp index 2d9985a..86d1f12 100644 --- a/be/src/exprs/json_functions.cpp +++ b/be/src/exprs/json_functions.cpp @@ -371,6 +371,9 @@ void JsonFunctions::parse_json_paths( void JsonFunctions::get_parsed_paths( const std::vector<std::string>& path_exprs, std::vector<JsonPath>* parsed_paths) { + if(path_exprs.empty()){ + return; + } if (path_exprs[0] != "$") { parsed_paths->emplace_back("", -1, false); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org