Returns references to all columns in the schema
(schema: &'a DFSchema)
| 90 | |
| 91 | /// Returns references to all columns in the schema |
| 92 | pub(crate) fn schema_columns<'a>(schema: &'a DFSchema) -> HashSet<ColumnReference<'a>> { |
| 93 | schema |
| 94 | .iter() |
| 95 | .flat_map(|(qualifier, field)| { |
| 96 | [ |
| 97 | ColumnReference::new(qualifier, field.name()), |
| 98 | // we need to push down filter using unqualified column as well |
| 99 | ColumnReference::new_unqualified(field.name()), |
| 100 | ] |
| 101 | }) |
| 102 | .collect::<HashSet<_>>() |
| 103 | } |
| 104 | |
| 105 | /// Log the plan in debug/tracing mode after some part of the optimizer runs |
| 106 | pub fn log_plan(description: &str, plan: &LogicalPlan) { |
no test coverage detected
searching dependent graphs…