MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / batch_schema

Function batch_schema

nodedb/src/control/arrow_convert.rs:168–170  ·  view source on GitHub ↗

Get the schema of an Arrow RecordBatch as a reference.

(batch: &RecordBatch)

Source from the content-addressed store, hash-verified

166
167/// Get the schema of an Arrow RecordBatch as a reference.
168pub fn batch_schema(batch: &RecordBatch) -> SchemaRef {
169 batch.schema()
170}
171
172/// Compute SUM of a numeric column in a RecordBatch.
173pub fn arrow_sum(batch: &RecordBatch, column_name: &str) -> Option<f64> {

Callers

nothing calls this directly

Calls 1

schemaMethod · 0.45

Tested by

no test coverage detected