Package org.apache.calcite.sql.advise
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.
-
ClassDescriptionAn assistant which offers hints and corrections to a partially-formed SQL statement.Text and position info of a validator or parser exception.Table function that returns completion hints for a given SQL statement.Table function that returns completion hints for a given SQL statement.This class is used to return values for
(String, int, String[])
.This class is used to return values for(String, int, String[])
.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.A simple parser that takes an incomplete and turn it into a syntactically correct statement.Token representing an identifier.Token.Tokenizer.