Class SetOptionHandler
java.lang.Object
org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
org.apache.drill.exec.planner.sql.handlers.SetOptionHandler
Converts a
SqlNode
representing: "ALTER .. SET option = value" or "ALTER ... SET option"
statement to a PhysicalPlan
. See DrillSqlSetOption
These statements have side effects i.e. the options within the system context or the session context are modified.
The resulting DirectPlan
returns to the client a string that is the name of the option that was updated
or a value of the property
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Representation of "SET property.name" query result. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal PhysicalPlan
getPlan
(org.apache.calcite.sql.SqlNode sqlNode) HandlesDrillSqlSetOption
queryMethods inherited from class org.apache.drill.exec.planner.sql.handlers.AbstractSqlHandler
unwrap
-
Constructor Details
-
SetOptionHandler
-
-
Method Details
-
getPlan
public final PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException HandlesDrillSqlSetOption
query- Specified by:
getPlan
in classAbstractSqlHandler
- Throws:
ForemanSetupException
-