snowflake.snowpark.functions.invoker_share¶

snowflake.snowpark.functions.invoker_share() → Column[source]¶

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.

Parameters:

_emit_ast (bool, optional) – A flag indicating whether to emit the abstract syntax tree (AST). Defaults to True.

Returns:

A Snowflake Column object representing the name of the active share.

Return type:

Column

Example::
>>> df = session.create_dataframe([1])
>>> result = df.select(invoker_share().alias("INVOKER_SHARE")).collect()
>>> assert result[0]["INVOKER_SHARE"] is None
Copy