MCPcopy Create free account
hub / github.com/apache/arrow-rs / create_batch

Function create_batch

arrow-array/src/array/union_array.rs:1645–1653  ·  view source on GitHub ↗
(union: UnionArray)

Source from the content-addressed store, hash-verified

1643 }
1644
1645 fn create_batch(union: UnionArray) -> RecordBatch {
1646 let schema = Schema::new(vec![Field::new(
1647 "struct_array",
1648 union.data_type().clone(),
1649 true,
1650 )]);
1651
1652 RecordBatch::try_new(Arc::new(schema), vec![Arc::new(union)]).unwrap()
1653 }
1654
1655 fn test_slice_union(record_batch_slice: RecordBatch) {
1656 let union_slice = record_batch_slice

Callers 1

slice_union_arrayFunction · 0.70

Calls 1

try_newFunction · 0.85

Tested by 1

slice_union_arrayFunction · 0.56