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

Function assert_fields_eq

datafusion/core/src/test/mod.rs:204–212  ·  view source on GitHub ↗
(plan: &LogicalPlan, expected: &[&str])

Source from the content-addressed store, hash-verified

202}
203
204pub fn assert_fields_eq(plan: &LogicalPlan, expected: &[&str]) {
205 let actual: Vec<String> = plan
206 .schema()
207 .fields()
208 .iter()
209 .map(|f| f.name().clone())
210 .collect();
211 assert_eq!(actual, expected);
212}
213
214/// Returns the column names on the schema
215pub fn columns(schema: &Schema) -> Vec<String> {

Callers

nothing calls this directly

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…