atharva-potdar commented on code in PR #55641:
URL: https://github.com/apache/arrow/pull/55641#discussion_r4594670088


##########
cpp/src/arrow/json/parser.cc:
##########
@@ -511,6 +511,10 @@ class RawBuilderSet {
         const auto& struct_type = checked_cast<const StructType&>(t);
 
         for (const auto& f : struct_type.fields()) {
+          if (Cast<Kind::kObject>(*builder)->FindFieldIndex(f->name()) != -1) {

Review Comment:
   What performance impact would this have? Wouldn't it increase time 
complexity for initialization from linear to quadratic?



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