Commits


Jorge C. Leitao authored and Krisztián Szűcs committed e1cebfc4c87
ARROW-11333: [Rust] Generalized creation of empty arrays. This PR exposes two new functions: * `new_empty_array`, that creates a new empty `ArrayRef` (i.e. dynamically typed) of any (primitive or nested) type except `Union` * `RecordBatch::new_empty` that creates an empty `RecordBatch`, thereby migrating code from `DataFusion`. Since we were using a similar code in `array/transform/mod.rs` and `array_list`, this PR ends up removing some code. Closes #9281 from jorgecarleitao/improve_empty Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com> Signed-off-by: Neville Dipale <nevilledips@gmail.com>