22

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?

dunstantom
  • 551
  • 2
  • 5
  • 10

1 Answers1

34
select * 
from   mytable
where  contains(myarr,'foobar')
limit  10
David דודו Markovitz
  • 42,900
  • 6
  • 64
  • 88