Class ExtendedParser
java.lang.Object
org.apache.flink.table.planner.parse.ExtendedParser
ExtendedParser is used for parsing some special command which can't supported by CalciteParser, e.g. SET key=value may contain special characters in key and value. It's
also a good idea to move some parsing strategy here to avoid introducing new reserved keywords.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExtendedParser
public ExtendedParser()
-
-
Method Details
-
parse
Parse the input statement to theOperation.- Parameters:
statement- the command to evaluate- Returns:
- parsed operation that represents the command
-
getCompletionHints
Returns completion hints for the given statement at the given cursor position. The completion happens case insensitively.- Parameters:
statement- Partial or slightly incorrect SQL statementcursor- cursor position- Returns:
- completion hints that fit at the current cursor position
-