지정된 데이터베이스에 등록된 함수 목록을 반환합니다.
문법
listFunctions(dbName: str = None, pattern: str = None)
매개 변수
| 매개 변수 | 유형 | 설명 |
|---|---|---|
dbName |
str, 선택 사항 | 함수를 나열할 데이터베이스의 이름입니다. 카탈로그 이름으로 정규화할 수 있습니다. |
pattern |
str, 선택 사항 | 함수 이름이 일치해야 하는 패턴입니다. |
Returns
list 의 Function
Notes
데이터베이스를 지정하지 않으면 현재 데이터베이스와 카탈로그가 사용됩니다. 이 API에는 모든 임시 함수가 포함됩니다.
예제
spark.catalog.listFunctions()
# [Function(name=...
spark.catalog.listFunctions(pattern="to_*")
# [Function(name=...
spark.catalog.listFunctions(pattern="*not_existing_func*")
# []