Class CreateFunctionHandler
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.CreateFunctionHandler
-
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) Registers 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
-
CreateFunctionHandler
-
-
Method Details
-
getPlan
public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException, IOException Registers UDFs dynamically. Process consists of several steps:- Registering jar in jar registry to ensure that several jars with the same name is not registered.
- Binary and source jars validation and back up.
- Validation against local function registry.
- Validation against remote function registry.
- Remote function registry update.
- Copying of jars to registry area and clean up.
- Overrides:
getPlan
in classDefaultSqlHandler
- Returns:
- - Single row indicating list of registered UDFs, or error message otherwise.
- Throws:
ForemanSetupException
IOException
-