How to run Python code without defining pernament/temporary User Defined Function or stored procedure?
The use case is to run the code one time inside a script and it should avoid creating/dropping additional database objects.
I am searching for an equivalent of anonymous block (SQL) known from Snowflake Scripting but for Python or other supported languages(Java, Scala).
Snowflake Scripting - Using an Anonymous Block
If you don’t want to store the block in a stored procedure in the database, you can define and use an anonymous block. An anonymous block is a block that is not part of a stored procedure. You define the block as a separate, standalone SQL statement.
The BEGIN … END statement that defines the block also executes the block. (You don’t run a separate CALL command to execute the block.)



