Skip to main content

check_schema

Function check_schema 

Source
pub fn check_schema(schema: &Schema) -> Result<()>
Expand description

Checks a schema on its own, before anything is read against it.

This is separate from check because it is worth doing once when a dataset is opened rather than once per batch, and because a host that is only inspecting a file still wants to know whether it holds a type this build can carry.

ยงErrors

Returns a violation of Invariant::Depth if the schema nests past MAX_DEPTH, or of Invariant::Unsupported if it names a type this build cannot carry.