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

Function test_schema

datafusion/datasource-json/src/source.rs:532–537  ·  view source on GitHub ↗

Helper to create a test schema

()

Source from the content-addressed store, hash-verified

530
531 /// Helper to create a test schema
532 fn test_schema() -> SchemaRef {
533 Arc::new(Schema::new(vec![
534 Field::new("id", DataType::Int64, true),
535 Field::new("name", DataType::Utf8, true),
536 ]))
537 }
538
539 #[tokio::test]
540 async fn test_json_array_from_file() -> Result<()> {

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…