To continue on from my last post I have kept on playing in Snowflake and am working towards building something that resembles ETL Procedures on Snowflake. Now as this is just something I am messing around with at home it is much more about learning that doing things 100% correctly. For me the below script was the first time in Snowflake SQL procedure I have:
- Used Exception handling
- That works and inserts into a log table, now to see if I can log the error message
- Performed a dynamic insert using data retrieved from one of my own tables.
Whilst these are not earth shattering they are little thing I was not confident on how to do this morning and now I have a working example. I was not confident this morning as I am honestly finding it hard to find real world examples written in Snowflake using their SQL language, all examples seem to be in the Javascript one.
As with my previous post below is the code and a little gif showing the code being called.
Comments
Post a Comment