Converting Snowflake Lookup results into an array
Hello all,
I'm using the Snowflake Lookup snap to query a table that contains the details of projects already processed, and get the values of the "project ID" column. The values are unique project IDs that I need to store somehow (I'm thinking an array) for another snap to later check if that ID was previously used or not (to determine if it's the first time we deal with that project ID, or if it was already processed and stored in the Snowflake table.
The Snowflake Lookup snap seems to return only one value at the time, but I need to have all the values stored into one structure that I can use later to check the presence of the unique IDs.
The screenshot below shows the output of the Snowflake Lookup.
When I use a mapper right after, it can convert the "UID" into arrays, but one element per array, and one array per ID...
That's not what I need, I need to have all the IDs in the same structure...
Or... Is it better to query Snowflake for each and every ID that I need to check instead of querying Snowflake one time at the start of the pipeline execution and getting a list to re-use?
Thanks a lot in advance for any help!
Kind regards,
JF