Class ExplainHandler
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.ExplainHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
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) static void
printPlan
(org.apache.calcite.rel.RelNode node) static void
printPlan
(Prel node, QueryContext context) org.apache.calcite.sql.SqlNode
rewrite
(org.apache.calcite.sql.SqlNode sqlNode) Rewrite the parse tree.Methods inherited from class org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler
addRenamedProject, convertToDrel, convertToPlan, convertToPop, convertToPrel, convertToRawDrel, getPops, log, log, log, logAndSetTextPlan, transform, transform, validateAndConvert, validateNode
Methods inherited from class org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
unwrap
-
Constructor Details
-
ExplainHandler
-
-
Method Details
-
getPlan
public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.ValidationException, org.apache.calcite.tools.RelConversionException, IOException, ForemanSetupException - Overrides:
getPlan
in classDefaultSqlHandler
- Throws:
org.apache.calcite.tools.ValidationException
org.apache.calcite.tools.RelConversionException
IOException
ForemanSetupException
-
rewrite
public org.apache.calcite.sql.SqlNode rewrite(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.RelConversionException, ForemanSetupException Description copied from class:DefaultSqlHandler
Rewrite the parse tree. Used before validating the parse tree. Useful if a particular statement needs to converted into another statement.- Overrides:
rewrite
in classDefaultSqlHandler
- Parameters:
sqlNode
- sql parse tree to be rewritten- Returns:
- Rewritten sql parse tree
- Throws:
org.apache.calcite.tools.RelConversionException
ForemanSetupException
-
printPlan
-
printPlan
public static void printPlan(org.apache.calcite.rel.RelNode node)
-