I'm a big fan of Session variables when I'm creating Snowflake SQL scripts, but I'm missing the functionality to reset all my variables. Is there a way to reset all Session variables with one command? (something like UNSET ALL SESSION VARIABLES)
The underlying problem is that I find myself making many variable declaration errors when creating Snowflake scripts. Say that I'm developing two scripts. In both scripts, I make use of a common variable "var", but I forgot to declare it in one of my scripts. I'm currently unable to detect this mistake easily in my own session.
According to the documentation documentation, Snowflake allows me to show all variables and allows me to unset multiple variables if I know their identifiers. A combination of the two is what I'm looking for.
Any advise would be greatly appreciated.