MCPcopy Create free account
hub / github.com/apache/datafusion / create_record_batch

Function create_record_batch

datafusion-examples/examples/sql_ops/query.rs:86–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86fn create_record_batch() -> Result<RecordBatch> {
87 let id_array = UInt8Array::from(vec![1]);
88 let account_array = UInt64Array::from(vec![9000]);
89
90 Ok(RecordBatch::try_new(
91 get_schema(),
92 vec![Arc::new(id_array), Arc::new(account_array)],
93 )
94 .unwrap())
95}
96
97fn get_schema() -> SchemaRef {
98 SchemaRef::new(Schema::new(vec![

Callers

nothing calls this directly

Calls 1

get_schemaFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…