Skip to main content

Module schema

Module schema 

Source
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§

Shape

Functions§

specialize
Specialize a program against a known document Shape. Current rewrites: