Package org.apache.drill.exec.planner.sql.parser
package org.apache.drill.exec.planner.sql.parser
-
ClassDescriptionImplementation of
SqlVisitor
that converts bracketed compoundSqlIdentifier
to bracket-less compoundSqlIdentifier
(also known asDrillCompoundIdentifier
) to provide ease of use while querying complex types.This utility contains the static functions to manipulateDrillCalciteSqlWrapper
,DrillCalciteSqlOperatorWrapper
DrillCalciteSqlFunctionWrapper
andDrillCalciteSqlAggFunctionWrapper
.Helper methods or constants used in parsing a SQL query.SqlCall interface with addition of method to get the handler.Sql parser tree node to represent statement: { DESCRIBE | DESC } tblname [col_name | wildcard ]Sql parse tree node to represent statement:RESET { <NAME> | ALL }
.Sql parse tree node to represent statement:SET <NAME> [ = VALUE ]
.A visitor that is very similar toFindLimit0SqlVisitor
in that it looks for a LIMIT 0 in the root portion of the query tree for the sake of enabling optimisations but that is different in the following aspects.SQL tree for ANALYZE statement.Enum which indicates type of CREATE statement.Enum for metadata types to drop.Sql parse tree node to represent statement: REFRESH TABLE METADATA tblnameParent class for CREATE, DROP, DESCRIBE, ALTER SCHEMA commands.CREATE SCHEMA sql call.DESCRIBE SCHEMA FOR TABLE sql call.Enum which specifies format of DESCRIBE SCHEMA FOR table output.DROP SCHEMA sql call.Sql parse tree node to represent statement: SHOW FILES [{FROM | IN} db_name] [LIKE 'pattern' | WHERE expr]Sql parse tree node to represent statement: SHOW {DATABASES | SCHEMAS} [LIKE 'pattern' | WHERE expr]Sql parse tree node to represent statement: SHOW TABLES [{FROM | IN} db_name] [LIKE 'pattern' | WHERE expr]Sql parser tree node to representUSE SCHEMA
statement.