

 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/). 

# ARRAY function
<a name="r_array"></a>

Creates an array of the SUPER data type.

## Syntax
<a name="r_array-synopsis"></a>

```
ARRAY( [ expr1 ] [, expr2 [, ... ]] )
```

## Argument
<a name="r_array-argument"></a>

 *expr1, expr2*   
Expressions of any Amazon Redshift data type except date and time types, since Amazon Redshift doesn't cast the date and time types to the SUPER data type. The arguments don't need to be of the same data type.

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

The ARRAY function returns the SUPER data type.

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

The following examples show an array of numeric values and an array of different data types.

```
--an array of numeric values
select ARRAY(1,50,null,100);
      array
------------------
 [1,50,null,100]
(1 row)

--an array of different data types
select ARRAY(1,'abc',true,3.14);
        array
-----------------------
 [1,"abc",true,3.14]
(1 row)
```

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