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

Function assert_fields_eq

datafusion/optimizer/src/test/mod.rs:80–88  ·  view source on GitHub ↗
(plan: &LogicalPlan, expected: Vec<&str>)

Source from the content-addressed store, hash-verified

78}
79
80pub fn assert_fields_eq(plan: &LogicalPlan, expected: Vec<&str>) {
81 let actual: Vec<String> = plan
82 .schema()
83 .fields()
84 .iter()
85 .map(|f| f.name().clone())
86 .collect();
87 assert_eq!(actual, expected);
88}
89
90pub fn scan_tpch_table(table: &str) -> LogicalPlan {
91 let schema = Arc::new(get_tpch_table_schema(table));

Calls 7

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
fieldsMethod · 0.45
schemaMethod · 0.45
cloneMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…