xiaokang commented on code in PR #41290:
URL: https://github.com/apache/doris/pull/41290#discussion_r1825315273


##########
be/src/vec/exec/format/json/new_json_reader.cpp:
##########
@@ -330,6 +330,10 @@ Status 
NewJsonReader::get_parsed_schema(std::vector<std::string>* col_names,
         objectValue = _json_doc;
     }
 
+    if (!objectValue->IsObject()) {
+        return Status::DataQualityError("JSON data is not an object.");

Review Comment:
   What do you mean by `streamload will return false`. I'm concerned that this 
change might affect other load.



-- 
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