DROP FUNCTION
Deletes a user-defined function (UDF) from a keyspace.
|
Remove the function from any aggregates before dropping. |
Synopsis
DROP FUNCTION [ IF EXISTS ] [<keyspace_name>.]<function_name> [ (<argument_type> [ , ... ]) ] ;
| Syntax conventions | Description |
|---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
|
Variable value. Replace with a user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
|
Set, list, map, or tuple.
Angle brackets ( |
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrConfig files. |
Options
- IF EXISTS
-
Optional. Drop the function if it exists, or silently do nothing if the named function doesn’t exist in the keyspace. Otherwise, an error is returned if the function doesn’t exist.
- keyspace_name
-
The name of the keyspace containing the function. If not specified, the current keyspace is used.
- function_name
-
The name of the function to drop.
- argument_type
-
Argument type of the function to drop, such as
intortext. Required if you have multiple functions with the same name.
Examples
Drop the fLog UDF from the cycling keyspace:
DROP FUNCTION IF EXISTS cycling.flog;