Checking the array in Athena

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 

Athena doesn't seem to have an array_contains function:

 SYNTAX_ERROR: line 2:7: Function array_contains not registered 

Is there an alternative way to check if an array contains a specific string?

+5
source share
1 answer
 select * from mytable where contains(myarr,'foobar') limit 10 
+2
source

Source: https://habr.com/ru/post/1266665/


All Articles