Skip to content


DeltaSqlParser is a SQL parser (Spark SQL) for Delta SQL.

DeltaSqlParser is registered in a Spark SQL application using DeltaSparkSessionExtension.

Creating Instance

DeltaSqlParser takes the following to be created:

  • Delegate ParserInterface (Spark SQL) (to fall back to for unsupported SQLs)

DeltaSqlParser is created when:


DeltaSqlParser uses DeltaSqlAstBuilder to convert SQL statements to their runtime representation (as a LogicalPlan).

In case a SQL statement could not be parsed to a LogicalPlan, DeltaSqlAstBuilder requests the delegate ParserInterface to handle it.