Is there a way to convert Strings to Arrays in Athena? So that I can pass a List as String as a parameter and use the IN Operator to prove if a column is one of the list values.
This site is in read only mode. Please continue to browse, but replying, likes,
and other actions are disabled for now.
This worked for me:
SELECT “virtualdevice”
FROM (
SELECT split(’{{devices}}’, ‘,’) AS items
),
UNNEST (items) as t(virtualdevice)