Package org.apache.calcite.sql.advise
Provides hints and corrections for editing SQL statements.
The SQL statement might be partially-formed SQL statement or invalid. It is edited in a SQL editor user-interface.
The advisor uses the validation and parser framework set up in
org.apache.calcite.sql.validate
package.
-
Class Summary Class Description SqlAdvisor An assistant which offers hints and corrections to a partially-formed SQL statement.SqlAdvisorGetHintsFunction Table function that returns completion hints for a given SQL statement.SqlAdvisorGetHintsFunction2 Table function that returns completion hints for a given SQL statement.SqlAdvisorHint This class is used to return values for(String, int, String[])
.SqlAdvisorHint2 This class is used to return values for(String, int, String[])
.SqlAdvisorValidator SqlAdvisorValidator
is used bySqlAdvisor
to traverse the parse tree of a SQL statement, not for validation purpose but for setting up the scopes and namespaces to facilitate retrieval of SQL statement completion hints.SqlSimpleParser A simple parser that takes an incomplete and turn it into a syntactically correct statement.SqlSimpleParser.IdToken SqlSimpleParser.Query SqlSimpleParser.Token SqlSimpleParser.Tokenizer -
Enum Summary Enum Description SqlSimpleParser.TokenType