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§

AdvExt
An advanced-extension annotation (+ Enh:Name[args] or + Opt:Name[args]) that is attached to a relation node. The pair holds the adv_extension 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.
Parser
A parser for Substrait query plans in text format.
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 an advanced-extension annotation.
State

Constants§

PLAN_HEADER

Functions§

get_emit_kind 🔒
Extract the emit kind from a relation’s common field, covering all standard relation variants that carry it.
get_output_field_count 🔒
Return the number of output columns for a relation.
set_advanced_extension 🔒
Set the advanced_extension field on a Rel, covering all standard relation variants that carry the field directly.