snowflake.snowpark.functions.current_account_name

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

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_name()).collect()
>>> assert result[0]['CURRENT_ACCOUNT_NAME()'] is not None
Copy