Skip to content

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:

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.

Back to top