snowflake.snowpark.functions.current_client

snowflake.snowpark.functions.current_client() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/_functions/scalar_functions.py#L84-L94)

Returns the name of the client application used to connect to Snowflake.

Example

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