Class ExtendedParser

java.lang.Object
org.apache.flink.table.planner.parse.ExtendedParser

public class ExtendedParser extends Object
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 Details

  • Constructor Details

    • ExtendedParser

      public ExtendedParser()
  • Method Details

    • parse

      public Optional<org.apache.flink.table.operations.Operation> parse(String statement)
      Parse the input statement to the Operation.
      Parameters:
      statement - the command to evaluate
      Returns:
      parsed operation that represents the command
    • getCompletionHints

      public String[] getCompletionHints(String statement, int cursor)
      Returns completion hints for the given statement at the given cursor position. The completion happens case insensitively.
      Parameters:
      statement - Partial or slightly incorrect SQL statement
      cursor - cursor position
      Returns:
      completion hints that fit at the current cursor position