snowflake.snowpark.catalog.Catalog.userDefinedFunctionExists¶
- Catalog.userDefinedFunctionExists(udf: Union[str, UserDefinedFunction], arg_types: Optional[List[DataType]] = None, *, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, SchemaModel]] = None) bool[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/catalog.py#L574-L603)¶
- Check if the given user defined function exists in the given database and schema. If database or schema are not provided, check if the user defined function exists in the current database and schema. - Parameters:
- udf – user defined function name or - UserDefinedFunctionobject.
- arg_types – list of argument types to uniquely identify the user defined function. Defaults to None. 
- database – database name or - Databaseobject. Defaults to None.
- schema – schema name or - Schemaobject. Defaults to None.