Skip to content
Advertisement

us WHERE statement and ARRAY for AthenaQuery

I have an SQL query like this (written for PostgreSQL):

but I can’t run it like this for AthenaQuery (getting SYNTAX_ERROR: Function any not registered). How can I convert it?

Advertisement

Answer

You can rewrite the array operator to a standard IN condition.

Your query is equivalent to:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement