Class DropFunctionHandler
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.DropFunctionHandler
-
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) Unregisters UDFs dynamically.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
-
DropFunctionHandler
-
-
Method Details
-
getPlan
public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException, IOException Unregisters UDFs dynamically. Process consists of several steps:- Registering jar in jar registry to ensure that several jars with the same name is not being unregistered.
- Starts remote unregistration process, gets list of all jars and excludes jar to be deleted.
- Signals drill bits to start local unregistration process.
- Removes source and binary jars from registry area.
- Overrides:
getPlan
in classDefaultSqlHandler
- Returns:
- - Single row indicating list of unregistered UDFs, raise exception otherwise
- Throws:
ForemanSetupException
IOException
-