Create a "field not found" DataFusion::SchemaError
(
qualifier: Option<R>,
name: &str,
schema: &DFSchema,
)
| 1091 | |
| 1092 | /// Create a "field not found" DataFusion::SchemaError |
| 1093 | pub fn field_not_found<R: Into<TableReference>>( |
| 1094 | qualifier: Option<R>, |
| 1095 | name: &str, |
| 1096 | schema: &DFSchema, |
| 1097 | ) -> DataFusionError { |
| 1098 | schema_datafusion_err!(SchemaError::FieldNotFound { |
| 1099 | field: Box::new(Column::new(qualifier, name)), |
| 1100 | valid_fields: schema.columns().to_vec(), |
| 1101 | }) |
| 1102 | } |
| 1103 | |
| 1104 | /// Convenience wrapper over [`field_not_found`] for when there is no qualifier |
| 1105 | pub fn unqualified_field_not_found(name: &str, schema: &DFSchema) -> DataFusionError { |
no outgoing calls
no test coverage detected
searching dependent graphs…