pub fn try_project_schema(
schema: &ArrowSchema,
field_selection: &BTreeSet<String>,
) -> Result<ArrowSchema>Expand description
Project a schema down to the named fields, returning an error if any requested field is not present in the source schema. Use this to catch typos in field selections instead of silently receiving a partial schema.