Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SIZE

Focus mode
SIZE - Amazon Redshift

Returns the binary in-memory size of a SUPER type constant or expression as an INTEGER.

Syntax

SIZE(super_expression)

Arguments

super_expression

A SUPER type constant or expression.

Return type

INTEGER

Examples

To use SIZE to get the in-memory size of several SUPER type expressions, use the following example.

CREATE TABLE test_super_size(a SUPER); INSERT INTO test_super_size VALUES (null), (TRUE), (JSON_PARSE('[0,1,2,3]')), (JSON_PARSE('{"a":0,"b":1,"c":2,"d":3}')) ; SELECT a, SIZE(a) FROM test_super_size ORDER BY 2, 1; +---------------------------+------+ | a | size | +---------------------------+------+ | true | 4 | | NULL | 4 | | [0,1,2,3] | 23 | | {"a":0,"b":1,"c":2,"d":3} | 52 | +---------------------------+------+

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.