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

Function field_not_found

datafusion/common/src/error.rs:1093–1102  ·  view source on GitHub ↗

Create a "field not found" DataFusion::SchemaError

(
    qualifier: Option<R>,
    name: &str,
    schema: &DFSchema,
)

Source from the content-addressed store, hash-verified

1091
1092/// Create a "field not found" DataFusion::SchemaError
1093pub 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
1105pub fn unqualified_field_not_found(name: &str, schema: &DFSchema) -> DataFusionError {

Callers 4

index_of_columnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…