snowflake.snowpark.Session.get_session_stageΒΆ

Session.get_session_stage(statement_params: Optional[Dict[str, str]] = None) β†’ str[source]ΒΆ

Returns the name of the temporary stage created by the Snowpark library for uploading and storing temporary artifacts for this session. These artifacts include libraries and packages for UDFs that you define in this session via add_import().

Note

This temporary stage is created once under the current database and schema of a Snowpark session. Therefore, if you switch database or schema during the session, the stage will not be re-created in the new database or schema, and still references the stage in the old database or schema.