ARRAY_LOWER

Use ARRAY_LOWER to find the lower bounds of an array's indices for a given dimension.

ParameterType
array
array
index
integer
Returns: int

Example

Arrays are currently only supported on tables from a live connection to an Athena database. You cannot use them with other databases or with tables derived from an Athena database.

query:

SELECT country_id,
       cities,
       ARRAY_LOWER(cities, 1)
  FROM city_array

results:

country_id cities array_lower
UK London, Stretford 1
SG Singapore 1
US Southlake, South San Francisco, South Brunswick, Seattle 1
CN Beijing 1
CH Geneva, Bern 1
BR Sao Paulo 1