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 ParsedStatement
s. There can be zero, one or more SQL statements in the given SQL text.
Used when:
Cli
is requested to substituteVariables and handleStatementsEngineContext
is requested to parse SQL statementsKsqlResource
is requested for TERMINATE_CLUSTER
Preparing Statement¶
PreparedStatement<?> prepare(
ParsedStatement statement,
TypeRegistry typeRegistry)
Used when:
EngineContext
is requested to prepare a statement