You are viewing documentation about an older version (1.16.0). View latest version

snowflake.snowpark.functions.current_version

snowflake.snowpark.functions.current_version() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L367-L376)

Returns the current Snowflake version.

Example

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