snowflake.snowpark.functions.current_ip_address¶
- snowflake.snowpark.functions.current_ip_address() Column [source]¶
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