snowflake.snowpark.functions.invoker_share¶
- snowflake.snowpark.functions.invoker_share() → Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/_functions/scalar_functions.py#L392-L406)¶
- Returns the name of the share that directly accessed the table or view where the INVOKER_SHARE function is invoked, otherwise the function returns None. - Returns:
- A Snowflake Column object representing the name of the active share. 
- Return type:
 - Example::
- >>> df = session.create_dataframe([1]) >>> result = df.select(invoker_share().alias("INVOKER_SHARE")).collect() >>> assert result[0]["INVOKER_SHARE"] is None Copy