Expand description
Schema / shape inference for JSON documents.
Walks a serde_json::Value tree and infers its structural “shape”:
a recursive type describing each key and its possible types. Shapes
can be merged (union) to describe heterogeneous arrays.
Used by the planner and analysis passes to:
- detect which fields exist at which paths
- specialise opcodes when a path is guaranteed present
- detect heterogeneous arrays where per-item type varies
Enums§
Functions§
- specialize
- Specialize a program against a known document
Shape. Current rewrites: