cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Accessing temp table Snaplogic creates in Snowflake?

winosky
New Contributor III

Is it possible to access the temp table Snaplogic creates in Snowflake? Need to do some deletes and the delete snap takes a lot of time and resources. I would like to delete using a join to the temp table instead of individual transactions if possible.
โ€œMERGE_TEMP_TABLE_โ€

6 REPLIES 6

mbowen
Employee
Employee

Hi Winosky:

Temp tables created by the Snowflake Bulk snaps will be cleaned up during processing, so they are not suitable for accessing or joining against, at least reliably.

winosky
New Contributor III

Hi @mbowen, so it is possible then? When talking about reliable, do you mean Snaplogic randomly decides when the temp table is dropped or is it done during the snap?

Sorry, poor choice of words on my part. The snap manages the temporary table, and will remove it after it has completed its operation, so is an ephemeral thing. Let me see if I can fish out some more specifics for you. You mentioned that deleting via snap too time/resource consuming.

winosky
New Contributor III

Ah thanks, yup when Iโ€™m using the delete snap Iโ€™m deleting over 100k records and running a transaction separately isnโ€™t ideal. Is there another approach to using the delete snap? Can a script snap get around this maybe?
What Iโ€™m trying to accomplish now is to break the 100k into groups but it might not be ideal either.