Class DescribeTableHandler
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.DescribeTableHandler
-
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 TypeMethodDescriptionorg.apache.calcite.sql.SqlNode
rewrite
(org.apache.calcite.sql.SqlNode sqlNode) Rewrite the parse tree as SELECT ...protected org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,
org.apache.calcite.rel.type.RelDataType> validateNode
(org.apache.calcite.sql.SqlNode sqlNode) Methods inherited from class org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
addRenamedProject, convertToDrel, convertToPlan, convertToPop, convertToPrel, convertToRawDrel, getPlan, getPops, log, log, log, logAndSetTextPlan, transform, transform, validateAndConvert
Methods inherited from class org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
unwrap
-
Constructor Details
-
DescribeTableHandler
-
-
Method Details
-
rewrite
public org.apache.calcite.sql.SqlNode rewrite(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException Rewrite the parse tree as SELECT ... FROM INFORMATION_SCHEMA.COLUMNS ...- Overrides:
rewrite
in classDefaultSqlHandler
- Parameters:
sqlNode
- sql parse tree to be rewritten- Returns:
- Rewritten sql parse tree
- Throws:
ForemanSetupException
-
validateNode
protected org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.rel.type.RelDataType> validateNode(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.ValidationException, org.apache.calcite.tools.RelConversionException, ForemanSetupException - Overrides:
validateNode
in classDefaultSqlHandler
- Throws:
org.apache.calcite.tools.ValidationException
org.apache.calcite.tools.RelConversionException
ForemanSetupException
-