snowflake.snowpark.functions.current_account

snowflake.snowpark.functions.current_account() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L555-L564)

Returns the name of the account used in 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_account()).collect()
>>> assert result[0]['CURRENT_ACCOUNT()'] is not None
Copy
Language: English