03-17-2022 10:06 AM
I’m planning to fetch the data from a table using “Snowflake select snap” while putting the condition of getting 1k records ONLY in WHERE clause however it is not getting any results.
I can put the entire query in “Snowflake execute snap” as well but wanting to do with Snowflake Select as of now. Any help is highly appreciable.
Thanks!
Solved! Go to Solution.
03-23-2022 06:08 AM
Wanted to share the solution here. The query was right, no need to change the “Fetch-size” as well.
The only thing that was missing was ’ ’ for the IDs that we were passing in the query. Thus, the query would look like -
WHERE NAME IN (‘102345’, ‘1701’, ‘5604878’)
03-18-2022 01:27 AM
You have a particular set of IDs you want to process, and that set counts 1000 records? Or you just want the first 1000 from the table?
03-18-2022 01:30 AM
I’ve a specific set of 1000 IDs as of today, tomorrow it could be 5k, 0.5k or even 40k. Due to limited knowledge, I’m putting those IDs in the where clause of the query.
03-18-2022 01:34 AM
Are you executing the pipeline, or just validating?
03-18-2022 01:35 AM
Both validating and executing…
03-18-2022 01:37 AM
That’s strange. Can you show us the current setup of the snap?