Statement Parsing¶
Title
A title "Query Parsing" would probably make more sense but Query is an overloaded term in ksqlDB (a subtype of a Statement which is more generic term) so I decided to use the latter instead.
ksqlDB uses AstBuilder (and AstBuilder.Visitor) to parse and build a tree node for a KSQL text:
ksqlDB uses DefaultKsqlParser to prepare a statement for execution (using AstBuilder with AstBuilder.Visitor).
In the end, ksqlDB uses EngineContext for Variable Substitution and Sanitization while preparing a KSQL statement for execution.
Statements¶
KSQL | Statement |
---|---|
DESCRIBE SOURCE | ShowColumns |
others |