mapleFU opened a new issue, #37851:
URL: https://github.com/apache/arrow/issues/37851
### Describe the enhancement requested
In `arrow::ipc::ArrayLoader`, `SkipField` will create a dummy `ArrayData`,
and point `arrow::ipc::ArrayLoader::out_` into that. Would this causing
dangling pointer? Or it's by design?
```c++
Status Load(const Field* field, ArrayData* out) {
if (max_recursion_depth_ <= 0) {
return Status::Invalid("Max recursion depth reached");
}
field_ = field;
out_ = out;
out_->type = field_->type();
return LoadType(*field_->type());
}
Status SkipField(const Field* field) {
ArrayData dummy;
skip_io_ = true;
Status status = Load(field, &dummy);
skip_io_ = false;
return status;
}
```
### 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]