KsqlParser¶
KsqlParser is an abstraction of SQL parsers.
Contract¶
Parsing SQL Statements¶
List<ParsedStatement> parse(
String sql)
Parses the given SQL text into a collection of ParsedStatements. There can be zero, one or more SQL statements in the given SQL text.
Used when:
Cliis requested to substituteVariables and handleStatementsEngineContextis requested to parse SQL statementsKsqlResourceis requested for TERMINATE_CLUSTER
Preparing Statement¶
PreparedStatement<?> prepare(
ParsedStatement statement,
TypeRegistry typeRegistry)
Used when:
EngineContextis requested to prepare a statement