Parameter | Type |
---|---|
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 |