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

snowflake.snowpark.Session.get_current_role

Session.get_current_role() Optional[str][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.1/snowpark-python/src/snowflake/snowpark/session.py#L3803-L3807)

Returns the name of the primary role in use for the current session.

语言: 中文