xiaokang commented on code in PR #21988:
URL: https://github.com/apache/doris/pull/21988#discussion_r1268813841
##########
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:
wrap_explicitly or *wrap_explicitly ?
--
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]