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

Function base_schema

benchmarks/src/bin/gen_wide_data.rs:131–142  ·  view source on GitHub ↗

Eight-column base schema. All fields nullable so the schema is uniform across base and zero-filled replicated copies.

()

Source from the content-addressed store, hash-verified

129/// Eight-column base schema. All fields nullable so the schema is
130/// uniform across base and zero-filled replicated copies.
131fn base_schema() -> SchemaRef {
132 Arc::new(Schema::new(vec![
133 Field::new("id", DataType::Int64, true),
134 Field::new("value", DataType::Float64, true),
135 Field::new("count", DataType::Int64, true),
136 Field::new("ts", DataType::Date32, true),
137 Field::new("category", DataType::Utf8, true),
138 Field::new("flag", DataType::Utf8, true),
139 Field::new("status", DataType::Utf8, true),
140 Field::new("text", DataType::Utf8, true),
141 ]))
142}
143
144/// Synthesize one batch of length `n` covering rows `[start, start+n)`.
145fn synthesize_batch(start: usize, n: usize, schema: &SchemaRef) -> Result<RecordBatch> {

Callers 1

mainFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…