Maintained with ☕️ by
IcePanel logo

Amazon Redshift introduces new array functions for semi-structured data processing

Share

Services

[Amazon Redshift](https://aws.amazon.com/redshift/) now supports nine new array functions for working with semi-structured data stored in the [SUPER](https://docs.aws.amazon.com/redshift/latest/dg/super-overview.html) data type. The new functions include ARRAY\_CONTAINS, ARRAY\_DISTINCT, ARRAY\_EXCEPT, ARRAY\_INTERSECTION, ARRAY\_POSITION, ARRAY\_POSITIONS, ARRAY\_SORT, ARRAY\_UNION, and ARRAYS\_OVERLAP, enabling you to search, compare, sort, and transform arrays directly within your SQL queries. Previously, performing these operations required writing complex custom PartiQL SQL logic. These functions simplify complex data transformations and reduce query complexity by enabling sophisticated array operations in a single SQL statement. For example, you can use ARRAY\_CONTAINS and ARRAY\_POSITION for element lookup, ARRAY\_INTERSECTION and ARRAY\_EXCEPT for set operations, or ARRAY\_SORT and ARRAY\_DISTINCT to organize and deduplicate data. These functions are particularly valuable for applications involving nested data structures, event processing, and analytics workflows where data needs to be aggregated, filtered, or transformed at scale. The new Amazon Redshift array functions are available in all AWS Regions, including the AWS GovCloud (US) Regions, where Amazon Redshift is available. To learn more, please visit our [documentation](https://docs.aws.amazon.com/redshift/latest/dg/c%5FArray%5FFunctions.html).