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§

IndentedLine
Represents an input line, trimmed of leading two-space indents and final whitespace. Contains the number of indents and the trimmed line.
LineNode
Represents a line in the Plan tree structure before it’s converted to a relation. This allows us to build the tree structure first, then convert to relations with proper parent-child relationships.
ParseContext
Parser
A parser for Substrait query plans in text format.
RelationParser
TreeBuilder

Enums§

ParseError
State

Constants§

PLAN_HEADER

Functions§

get_input_field_count 🔒
Helper function to get the number of input fields from a relation. This is needed for Project relations to calculate output mapping indices.