How does one convert an array of string values into an array of numbers?
Background:
Using Snowflake, I have a string input like "123, 45, 89" that I want to convert to an array of numbers (123, 45, 89) so that I can eventually compare against an int column like
WHERE id IN ( array of number here)
I think I can use SPLIT('123, 45, 89', ',')
to get an array of strings, but get an error like this:
SQL compilation error: Can not convert parameter 'SPLIT(?, ',')' of type [ARRAY] into expected type [NUMBER(38,0)]
For context, I am using Metabase, with a text filter as input to add those ids.