jorgecarleitao opened a new pull request #9281:
URL: https://github.com/apache/arrow/pull/9281


   # Rational
   
   Creating an empty array was scattered around parquet, arrow and datafusion 
crates, mostly derived from need. Recently,  #9156 harmonized some of that for 
list arrays.
   However, this creation still does not support arbitrary nested types because 
it uses builders (which are typed), and the arbitrary empty array problem is 
not addressed yet.
   
   # This PR
   
   Exposes a new function, `new_empty_array`, that creates a new `ArrayRef` 
(i.e. dynamically typed) that supports arbitrarily nested types. It also 
exposes `RecordBatch::new_empty` that creates an empty `RecordBatch`, thereby 
migrating code from `DataFusion`.
   
   Since we were using a similar code in `DataFusion` and 
`array/transform/mod.rs`, this PR ends up removing some code.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to