BiteTheDDDDt commented on code in PR #9311:
URL: https://github.com/apache/incubator-doris/pull/9311#discussion_r867669516


##########
be/src/exec/json_scanner.cpp:
##########
@@ -329,6 +334,19 @@ Status JsonReader::init(const std::string& jsonpath, const 
std::string& json_roo
     return Status::OK();
 }
 
+Status JsonReader::_parse_jsonpath_and_json_root(const std::string& jsonpath,
+                                                 const std::string& json_root) 
{
+    // parse jsonpath
+    if (!jsonpath.empty()) {
+        Status st = _generate_json_paths(jsonpath, &_parsed_jsonpaths);

Review Comment:
   code can be simplify here



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to