

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# SPLIT\$1TO\$1ARRAY function
<a name="split_to_array"></a>

Uses a delimiter as an optional parameter. If no delimiter is present, then the default is a comma.

## Syntax
<a name="split_to_array-syntax"></a>

```
SPLIT_TO_ARRAY( string, delimiter )
```

## Arguments
<a name="split_to_array-arguments"></a>

 **string**   
The input string to be split.

 **delimiter**   
An optional value on which the input string will be split. The default is a comma.

## Return type
<a name="split_to_array-return-type"></a>

The SPLIT\$1TO\$1ARRAY function returns a SUPER data value.

## Example
<a name="split_to_array-example"></a>

The following example show the SPLIT\$1TO\$1ARRAY function.

```
SELECT SPLIT_TO_ARRAY('12|345|6789', '|');
     split_to_array
-------------------------
 ["12","345","6789"]
(1 row)
```

## See also
<a name="split_to_array-see-also"></a>
+ [ARRAY function](r_array.md)
+ [ARRAY\$1CONCAT function](r_array_concat.md)
+ [SUBARRAY function](r_subarray.md)
+ [ARRAY\$1FLATTEN function](array_flatten.md)