> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW CREATE FUNCTION

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

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

## Syntax

```SQL theme={null}
SHOW CREATE [GLOBAL] FUNCTION <function_name> ( <arg_type> [, ...] )
```

## Example

```sql theme={null}
SHOW CREATE FUNCTION default_db.python_add(BIGINT);
```

```sql theme={null}
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)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.