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.26.0/snowpark-python/src/snowflake/snowpark/stored_procedure.py#L57-L181)¶
- Bases: - object- Encapsulates a user defined lambda or function that is returned by - sproc(),- StoredProcedureRegistration.register()or- StoredProcedureRegistration.register_from_file(). The constructor of this class is not supposed to be called directly.- Call an instance of - StoredProcedureto invoke a stored procedure. The input should be Python literal values.- See also - Attributes - The Python function. - The stored procedure name.