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: str | None = None)[source]¶
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.