kou commented on issue #38837: URL: https://github.com/apache/arrow/issues/38837#issuecomment-2111324499
How about applying the "Member allocation" semantics: https://arrow.apache.org/docs/format/CDataInterface.html#member-allocation > Therefore, the consumer MUST not try to interfere with the producer’s handling of these members’ lifetime. The only way the consumer influences data lifetime is by calling the base structure’s release callback. The current `ImportRecordBatch()` doesn't have an option that doesn't call the statistics array's `release()`. So we need to add more APIs for this use case (import member array not base array) something like `ImportMemberRecordBatch()`. Or we can add `Schema::statistics()` and `ImportSchema()` import `ARROW:statistics` automatically. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org