This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 61be713 fix for be server crash which throwing syntax error when
parse json … (#3846)
61be713 is described below
commit 61be7132a908841b770fa1c31d64b429f3d1e475
Author: sdgshawn <[email protected]>
AuthorDate: Sat Jun 13 12:45:16 2020 +0800
fix for be server crash which throwing syntax error when parse json …
(#3846)
Fix for be server crash which throwing syntax error when parse json from
kafka message
---
be/src/exprs/json_functions.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/exprs/json_functions.cpp b/be/src/exprs/json_functions.cpp
index e7252e4..415a2d5 100644
--- a/be/src/exprs/json_functions.cpp
+++ b/be/src/exprs/json_functions.cpp
@@ -291,7 +291,7 @@ rapidjson::Value*
JsonFunctions::get_json_array_from_parsed_json (
}
rapidjson::Value* root = match_value(parsed_paths, document,
mem_allocator, true);
- if (root == document) {// not found
+ if (root == nullptr || root == document) {// not found
return nullptr;
} else if (!root->IsArray()) {
rapidjson::Value* array_obj = nullptr;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]