@Internal public interface Parser
Modifier and Type | Method and Description |
---|---|
List<Operation> |
parse(String statement)
Entry point for parsing SQL queries expressed as a String.
|
UnresolvedIdentifier |
parseIdentifier(String identifier)
Entry point for parsing SQL identifiers expressed as a String.
|
ResolvedExpression |
parseSqlExpression(String sqlExpression,
TableSchema inputSchema)
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 evaluateOperation
sSqlParserException
- when failed to parse the statementUnresolvedIdentifier parseIdentifier(String identifier)
identifier
- the SQL identifier to parseSqlParserException
- when failed to parse the identifierResolvedExpression parseSqlExpression(String sqlExpression, TableSchema inputSchema)
sqlExpression
- the SQL expression to parseinputSchema
- the schema of the fields in sql expressionSqlParserException
- when failed to parse the sql expressionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.