Class CreateFunctionHandler


public class CreateFunctionHandler extends DefaultSqlHandler
  • Constructor Details

  • Method Details

    • getPlan

      public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException, IOException
      Registers UDFs dynamically. Process consists of several steps:
      1. Registering jar in jar registry to ensure that several jars with the same name is not registered.
      2. Binary and source jars validation and back up.
      3. Validation against local function registry.
      4. Validation against remote function registry.
      5. Remote function registry update.
      6. Copying of jars to registry area and clean up.
      UDFs registration is allowed only if dynamic UDFs support is enabled.
      Overrides:
      getPlan in class DefaultSqlHandler
      Returns:
      - Single row indicating list of registered UDFs, or error message otherwise.
      Throws:
      ForemanSetupException
      IOException