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

Function schema

datafusion/core/tests/expr_api/simplification.rs:48–56  ·  view source on GitHub ↗

A schema like: a: Int32 (possibly with nulls) b: Int32 s: Utf8

()

Source from the content-addressed store, hash-verified

46/// b: Int32
47/// s: Utf8
48fn schema() -> DFSchemaRef {
49 Schema::new(vec![
50 Field::new("a", DataType::Int32, true),
51 Field::new("b", DataType::Int32, false),
52 Field::new("s", DataType::Utf8, false),
53 ])
54 .to_dfschema_ref()
55 .unwrap()
56}
57
58fn test_table_scan() -> LogicalPlan {
59 let schema = Schema::new(vec![

Callers 3

basicFunction · 0.70
fold_and_simplifyFunction · 0.70

Calls 2

newFunction · 0.85
to_dfschema_refMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…