Function
assert_fields_eq
(plan: &LogicalPlan, expected: &[&str])
Source from the content-addressed store, hash-verified
| 202 | } |
| 203 | |
| 204 | pub 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 |
| 215 | pub fn columns(schema: &Schema) -> Vec<String> { |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…