DeltaSqlParser¶
DeltaSqlParser is a SQL parser (Spark SQL's ParserInterface) for Delta SQL.
DeltaSqlParser
is registered in a Spark SQL application using DeltaSparkSessionExtension.
Creating Instance¶
DeltaSqlParser
takes the following to be created:
-
ParserInterface
(to fall back to for unsupported SQL)
DeltaSqlParser
is created when DeltaSparkSessionExtension
is requested to register Delta SQL support.
DeltaSqlAstBuilder¶
DeltaSqlParser
uses DeltaSqlAstBuilder to convert SQL statements to their runtime representation (as a LogicalPlan
).
In case an AST could not be converted to a LogicalPlan
, DeltaSqlAstBuilder
requests the delegate ParserInterface to parse it.
Last update: 2020-09-24