Skip to main content

Crate substrait_extensions

Crate substrait_extensions 

Source
Expand description

Packaged Substrait extension files.

This crate bundles the Substrait specification’s extension YAML files, the text-based JSON schemas, and the function test cases, alongside Rust types generated from the schemas with typify.

Versions of this crate correspond to Substrait releases.

  • text — types generated from the text schemas (e.g. text::simple_extensions::SimpleExtensions), plus the raw schema sources as consts (e.g. text::SIMPLE_EXTENSIONS_SCHEMA) for consumers that validate raw YAML against the JSON schema.
  • extensions — the embedded extension YAML files, the extensions::EXTENSIONS map (keyed by file stem to the parsed extension), and the extensions::SIMPLE_EXTENSIONS slice (keyed by URN to the raw YAML source).
  • testcases — the embedded function test case files.
  • examples — the embedded example extension and type YAML files from the specification’s documentation. These are illustrations, not catalog entries: they are deliberately absent from extensions::EXTENSIONS and extensions::SIMPLE_EXTENSIONS, their URNs use the extension:org.example: owner, and they carry no compatibility guarantee. They are useful as fixtures for testing an extension parser.

Modules§

examples
The embedded example extension and type YAML files.
extensions
The embedded Substrait core extension YAML files.
testcases
The embedded Substrait function test case files.
text
Types generated from the Substrait text-based JSON schemas, plus the raw schema sources as &str consts (e.g. SIMPLE_EXTENSIONS_SCHEMA).