snowflake.snowpark.functions.current_region¶

snowflake.snowpark.functions.current_region() → Column[source]¶

Returns the name of the region for the account where the current user is logged in.

Example

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