snowflake.snowpark.stored_procedure.StoredProcedure¶
- class snowflake.snowpark.stored_procedure.StoredProcedure(func: Callable, return_type: DataType, input_types: List[DataType], name: str, execute_as: Literal['caller', 'owner'] = 'owner', anonymous_sp_sql: Optional[str] = None, packages: Optional[List[Union[str, module]]] = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/stored_procedure.py#L44-L136)¶
Bases:
object
Encapsulates a user defined lambda or function that is returned by
sproc()
,StoredProcedureRegistration.register()
orStoredProcedureRegistration.register_from_file()
. The constructor of this class is not supposed to be called directly.Call an instance of
StoredProcedure
to invoke a stored procedure. The input should be Python literal values.See also
Attributes
The Python function.
The stored procedure name.