You are viewing documentation about an older version (1.11.1). View latest version

snowflake.snowpark.functions.current_warehouse

snowflake.snowpark.functions.current_warehouse() Column[source]

Returns the name of the warehouse in use for the current session.

Example

>>> # Return result is tied to session, so we only test if the result exists
>>> result = session.create_dataframe([1]).select(current_warehouse()).collect()
>>> assert result[0]['CURRENT_WAREHOUSE()'] is not None
Copy