eldenmoon commented on code in PR #21988:
URL: https://github.com/apache/doris/pull/21988#discussion_r1268843049
##########
be/src/exprs/json_functions.cpp:
##########
@@ -172,11 +172,13 @@ rapidjson::Value*
JsonFunctions::get_json_array_from_parsed_json(
rapidjson::Value* root = match_value(parsed_paths, document,
mem_allocator, true);
if (root == nullptr || root == document) { // not found
return nullptr;
- } else if (!root->IsArray()) {
+ } else if (!root->IsArray() && wrap_explicitly) {
Review Comment:
just check if it is a null pointer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]