Skip to main content

Module simple_extensions

Module simple_extensions 

Source
Available on crate feature parse only.
Expand description

Rustic types for validating and working with Substrait simple extensions.

The raw YAML structs live in crate::text::simple_extensions. This module parses those values into the typed representations used by this crate:

  • ExtensionFile – a fully validated extension document (URN plus its definitions).
  • SimpleExtensions – the validated objects declared by a single extension file.
  • CustomType / Type – type definitions and type expressions.
  • ScalarFunctionVariant – parsed scalar function implementations, one per signature.
  • Registry – a reusable lookup structure that stores validated extension files and exposes typed access to their contents.

Modules§

argument
Parsing of type arguments: simple_extensions::ArgumentsItem.

Structs§

Assignment
An assignment to a named parameter in a return derivation.
CustomType
A validated Simple Extension type definition
ExtensionFile
A parsed and validated RawExtensions: a simple extensions file.
Options
Validated function options
Registry
Extension Registry that manages Substrait extensions
ReturnType
A return declaration, with any ordered assignments and its final type.
ScalarFunctionVariant
A scalar function implementation (overload), identified by its signature.
SimpleExtensions
The contents (types and functions) in an ExtensionFile.
Type
A type expression with nullability.
VariadicBehavior
Validated variadic behavior with min/max constraints

Enums§

AssignmentValue
A supported assignment expression, retained without evaluation.
BinaryOp
A binary operator in an unevaluated numeric expression.
BooleanExpr
A boolean-valued expression. Integer and type expressions cannot be used as conditions.
ComparisonOp
A comparison of integer expressions.
ExtensionTypeError
Error types for extension type validation
IntegerParameter
An integer literal, named parameter, or unevaluated numeric expression.
NullabilityHandling
How a function handles null inputs and produces nullable outputs
NumericFunction
A supported numeric function in an unevaluated type derivation.
SimpleExtensionsError
Errors for converting from YAML to SimpleExtensions.
TypeKind
The structure of a type expression, without its nullability.
TypeParameter
A parameter, used in parameterized types
TypeParseError
Syntax and expression-kind errors reported by the type parser.