I have a table in Athena where one of the columns is of type array<string>
. However, when I run
select * from mytable
where array_contains(myarr,'foobar')
limit 10
it seems Athena doesn't have the array_contains
function:
SYNTAX_ERROR: line 2:7: Function array_contains not registered
Is there an alternative way to check if the array contains a particular string?
select *
from mytable
where contains(myarr,'foobar')
limit 10