We have refactored Arrow Array and Schema allocation for Comet execution before. Based on Arrow C Data interface spec, the two structures should be allocated by the consumer.
Another place we incorrectly allocate them is in ColumnReader and MetadataColumnReader. Previously the incorrect allocation caused a few strange errors. We should refactor the allocation in ColumnReader and MetadataColumnReader too.
Describe the bug
We have refactored Arrow Array and Schema allocation for Comet execution before. Based on Arrow C Data interface spec, the two structures should be allocated by the consumer.
Another place we incorrectly allocate them is in ColumnReader and MetadataColumnReader. Previously the incorrect allocation caused a few strange errors. We should refactor the allocation in ColumnReader and MetadataColumnReader too.
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response