yannan-wyn opened a new issue, #48646:
URL: https://github.com/apache/arrow/issues/48646

   ### Describe the enhancement requested
   
   1. The current implementation of StructBuilder appends empty to each child 
vector for each appended null.
   2. In some scenarios, I try to extract child[0], and theoretically, the row 
that was appended as null should also be null. However, this is not the case in 
practice (because the current implementation uses AppendEmpty for child arrays).
   I would like to rewrite the code like this:
   
   Status AppendNull() final {
   for (const auto& field : children_) {
   ARROW_RETURN_NOT_OK(field->AppendNull());
   }
   return Append(false);
   }
   
   
   ### Component(s)
   
   C++


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