Skip to main content

Module printer

Module printer 

Source
Expand description

Printing of MirScalarExpr in the syntax accepted by the parser.

Unlike the EXPLAIN printer, which renders function variants by their SQL name (losing the exact variant, e.g. + for every add function), this printer renders exact variants by their canonical name. Parsing the output reconstructs the original expression. Test tooling uses this to generate parser inputs.

Functionsยง

print_literal ๐Ÿ”’
print_repr_scalar_type ๐Ÿ”’
print_scalar
Renders a MirScalarExpr such that crate::try_parse_scalar parses it back to an equal expression.
print_sql_scalar_type ๐Ÿ”’