In my Clickhouse server, I have a table with an Array of Integers field:
CREATE TABLE my_table
(
...
my_array_field Array(UInt32),
...
)
Pretty simple definition.
But now I want to filter the records matching a condition like this:
Any of the itens inside my_array_field is between 5000 and 6000
In postgres I was doing something like this:
SELECT * FROM my_table WHERE EXISTS
(
SELECT 1 FROM unnest(my_array_field) AS my_array_field WHERE my_array_field BETWEEN 5000 AND 6000
)
But now I have the same challenge in clickhouse and need some help.
Thanks in advance!