Use theDocumentation Index
Fetch the complete documentation index at: https://docs.risingwave.com/llms.txt
Use this file to discover all available pages before exploring further.
DROP FUNCTION command to remove an existing user-defined function (UDF).
Syntax
| Parameter or clause | Description |
|---|---|
| function_name | Name of the UDF you want to drop. |
| ( argument_type [ , … ] ) | Optional: Argument types of the function.Specify the argument types when the name of the function you want to drop isn’t unique within the schema. |
| IF EXISTS | Do not return an error if the specified function does not exist. A notice is issued in this case. |
| CASCADE option | If this option is specified, all objects (such as materialized views) that depend on the function, and in turn all objects that depend on those objects will be dropped. |
Usage
A function can be dropped using one of the following methods:- Full function signature:
- Function name only, if it’s unique in its schema:
Examples
First, let’s create some functions.f1(int,int) is the only function named f1, you can drop it by name or full signature:
See also
User-defined functions
A step-by-step guide for using UDFs in RisingWave: installing the RisingWave UDF API, defining functions in a Python file, starting the UDF server, and declaring UDFs in RisingWave.
SHOW FUNCTIONS
Show all existing UDFs