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

Function schema

datafusion/core/tests/physical_optimizer/test_utils.rs:141–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141pub fn schema() -> SchemaRef {
142 static SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {
143 Arc::new(Schema::new(vec![
144 Field::new("a", DataType::Int64, true),
145 Field::new("b", DataType::Int64, true),
146 Field::new("c", DataType::Int64, true),
147 Field::new("d", DataType::Int32, true),
148 Field::new("e", DataType::Boolean, true),
149 ]))
150 });
151 Arc::clone(&SCHEMA)
152}
153
154pub fn create_test_schema() -> Result<SchemaRef> {
155 static SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…