public class CreateFunctionProcedure extends ProcedureBase
-- NOTE: use '' as placeholder for optional arguments
CALL sys.create_function('function_identifier',
'[{"id": 0, "name":"length", "type":"INT"}', '{"id": 1, "name":"width", "type":"INT"}]',
'[{"id": 0, "name":"area", "type":"BIGINT"]',
true, 'comment'
)
catalog| Constructor and Description |
|---|
CreateFunctionProcedure() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
call(org.apache.flink.table.procedure.ProcedureContext procedureContext,
String function,
String inputParams,
String returnParams,
Boolean deterministic,
String comment,
String options) |
String |
identifier()
Returns a unique identifier among same factory interfaces.
|
execute, execute, execute, notnull, nullable, optionalConfigMap, table, withCatalogpublic String[] call(org.apache.flink.table.procedure.ProcedureContext procedureContext, String function, String inputParams, String returnParams, Boolean deterministic, String comment, String options) throws Catalog.FunctionAlreadyExistException, Catalog.DatabaseNotExistException
public String identifier()
FactoryFor consistency, an identifier should be declared as one lower case word (e.g. kafka). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7).
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.