rok commented on code in PR #50672:
URL: https://github.com/apache/arrow/pull/50672#discussion_r3663349410


##########
cpp/src/arrow/json/object_parser.cc:
##########
@@ -30,7 +30,10 @@ class ObjectParser::Impl {
     padded_json_ = simdjson::padded_string(json);
 
     // Store parsed document
-    document_ = parser_.iterate(padded_json_);
+    auto document_result = parser_.iterate(padded_json_);
+    if (auto error = std::move(document_result).get(document_)) {

Review Comment:
   Agreed.
   Also since pattern repeats, is there a nice way to abstract into a helper 
function?



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

Reply via email to