Skip to main content

Module structural

Module structural 

Source
Expand description

Parser for the structural part of the Substrait file format.

This is the overall parser for parsing the text format. It is responsible for tracking which section of the file we are currently parsing, and parsing each line separately.

Structs§

Addenda 🔒
Parsed + lines attached to a relation.
Addendum
A +-prefixed addendum line attached to a relation node. The pair holds the grammar rule directly (already unwrapped from the outer planNode).
IndentedLine
Represents an input line, trimmed of leading two-space indents and final whitespace. Contains the number of indents and the trimmed line.
ParsedAddendum 🔒
A parsed addendum line plus enough source location to build later errors.
Parser
A parser for Substrait query plans in text format.
RelationContext 🔒
Intermediate state for relation parsing: the structural tree data (children, addenda) has been parsed, but the relation’s own grammar pair hasn’t been converted to a protobuf relation yet.
RelationNode
A relation node in the plan tree, before conversion to a Substrait proto.
RelationParser
TreeBuilder

Enums§

LineNode
A parsed plan line: either a relation or a +-prefixed addendum line.
State

Constants§

PLAN_HEADER