@PublicEvolving
public interface Parser
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCompletionHints(String statement,
int position)
Returns completion hints for the given statement at the given cursor position.
|
List<Operation> |
parse(String statement)
Entry point for parsing SQL queries expressed as a String.
|
org.apache.flink.table.catalog.UnresolvedIdentifier |
parseIdentifier(String identifier)
Entry point for parsing SQL identifiers expressed as a String.
|
org.apache.flink.table.expressions.ResolvedExpression |
parseSqlExpression(String sqlExpression,
org.apache.flink.table.types.logical.RowType inputRowType,
org.apache.flink.table.types.logical.LogicalType outputType)
Entry point for parsing SQL expressions expressed as a String.
|
List<Operation> parse(String statement)
Note:If the created Operation is a QueryOperation it must be in a
form that will be understood by the Planner.translate(List) method.
The produced Operation trees should already be validated.
statement - the SQL statement to evaluateOperationsSqlParserException - when failed to parse the statementorg.apache.flink.table.catalog.UnresolvedIdentifier parseIdentifier(String identifier)
identifier - the SQL identifier to parseSqlParserException - when failed to parse the identifierorg.apache.flink.table.expressions.ResolvedExpression parseSqlExpression(String sqlExpression, org.apache.flink.table.types.logical.RowType inputRowType, @Nullable org.apache.flink.table.types.logical.LogicalType outputType)
sqlExpression - the SQL expression to parseinputRowType - the fields available in the SQL expressionoutputType - expected top-level output type if availableSqlParserException - when failed to parse the sql expressionString[] getCompletionHints(String statement, int position)
statement - Partial or slightly incorrect SQL statementposition - cursor positionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.