メインコンテンツまでスキップ
バージョン: Latest-4.1

SHOW CREATE FUNCTION

SHOW CREATE FUNCTION returns the CREATE FUNCTION DDL for a user-defined function.

Syntax

SHOW CREATE [GLOBAL] FUNCTION <function_name> ( <arg_type> [, ...] )

Example

SHOW CREATE FUNCTION default_db.python_add(BIGINT);
CREATE FUNCTION default_db.python_add(BIGINT)
RETURNS BIGINT
PROPERTIES (
"type" = "Python",
"file" = "inline",
"symbol" = "add",
"input" = "arrow"
)
AS $$

import pyarrow.compute as pc

def add(x):
return pc.add(x, 1)

$$
1 row in set (0.01 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.