DROP FUNCTION_SOURCE

Syntax

DROP FUNCTION_SOURCE function_source_name;

Description

Drops a Function Source. It can only be executed by the Function Source's owner.

DROP FUNCTION_SOURCE cannot be undone. Use it with care!

Parameters

function_source_name

The name of the Function Source to drop. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.

Example

Drop a Function Source

Assume a Function Source, named mysrc, is created using the CREATE FUNCTION SOURCE statement and is now available:

db1.public/my_store# CREATE FUNCTION_SOURCE "MySrc" WITH ( 'file' = '@/path/to/fnsrc.jar', 'description' = 'my functions' );
+-----------------+------------+------------+------------------------------------------+
|  Type           |  Name      |  Command   |  Summary                                 |
+=================+============+============+==========================================+
| function_source | MySrc      | CREATE     | function source "MySrc" was              |
|                 |            |            | successfully created                     |
+-----------------+------------+------------+------------------------------------------+

This Function Source can be dropped with the below statement:

db1.public/my_store# DROP FUNCTION_SOURCE "MySrc";
+-----------------+------------+------------+----------------------------------------+
|  Type           |  Name      |  Command   |  Summary                               |
+=================+============+============+========================================+
| function_source | MySrc      | DROP       | function_source MySrc has been deleted |
+-----------------+------------+------------+----------------------------------------+
db1.public/my_store# LIST FUNCTION_SOURCES;
  Name | Description | Language | Owner | Created at | Updated at | Status | Messages
-------+-------------+----------+-------+------------+------------+--------+-----------

Last updated