snowflake.snowpark.functions.current_ip_address

snowflake.snowpark.functions.current_ip_address() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.40.0/src/snowflake/snowpark/_functions/scalar_functions.py#L47-L57)

Returns the IP address of the client that submitted the current SQL statement.

Example

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