Class DropTableHandler
java.lang.Object
org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
org.apache.drill.exec.planner.sql.handlers.DropTableHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
DefaultSqlHandler.ConvertedRelNode, DefaultSqlHandler.MetaDataProviderModifier
-
Field Summary
Fields inherited from class org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
config, context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPlan
(org.apache.calcite.sql.SqlNode sqlNode) Function resolves the schema and invokes the drop method (while IF EXISTS statement is used function invokes the drop method only if table exists).Methods inherited from class org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
addRenamedProject, convertToDrel, convertToPlan, convertToPop, convertToPrel, convertToRawDrel, getPops, log, log, log, logAndSetTextPlan, rewrite, transform, transform, validateAndConvert, validateNode
Methods inherited from class org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
unwrap
-
Constructor Details
-
DropTableHandler
-
-
Method Details
-
getPlan
Function resolves the schema and invokes the drop method (while IF EXISTS statement is used function invokes the drop method only if table exists). Raises an exception if the schema is immutable.- Overrides:
getPlan
in classDefaultSqlHandler
- Parameters:
sqlNode
- - SqlDropTable (SQL parse tree of drop table [if exists] query)- Returns:
- - Single row indicating drop succeeded or table is not found while IF EXISTS statement is used, raise exception otherwise
-