I am running a simple aws athena query as follows
SELECT elements,
ARRAY(SELECT v * 2
FROM UNNEST(elements) AS v) AS multiplied_elements
FROM (
VALUES
(ARRAY[1, 2]),
(ARRAY[1, 3, 9]),
(ARRAY[1, 4, 16, 64])
) AS t(elements)
The query is directly taken from a blog in the official prestodb website: https://prestodb.io/blog/2020/03/02/presto-lambda
But on running the query I am running into
line 2:11: no viable alternative at input 'array(select' (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: 3fec5bf2-571a-45b0-8771-a860b6e840ec; proxy: null)
What is the reason for this error?