REFRESH 함수

적용 대상:검사 '예'로 표시 Databricks 런타임

지정된 함수의 클래스 이름 및 리소스 위치를 포함하는 Apache Spark 캐시에 대해 캐시된 함수 항목을 무효화합니다. 무효화된 캐시가 바로 채워집니다. REFRESH FUNCTION은 영구 함수에 대해서만 작동합니다. 네이티브 함수 또는 임시 함수를 새로 고치면 예외가 발생합니다.

구문

REFRESH FUNCTION function_name

디스크 캐싱과 Apache Spark 캐시의 차이점은 디스크 캐시와 Spark 캐시를 참조하세요.

매개 변수

  • function_name

    함수의 이름입니다. 정규화되지 않은 이름의 경우 현재 스키마가 사용됩니다.

예제

-- The cached entry of the function is refreshed
-- The function is resolved from the current schema as the function name is unqualified.
> REFRESH FUNCTION func1;

-- The cached entry of the function is refreshed
-- The function is resolved from tempDB schema as the function name is qualified.
> REFRESH FUNCTION sc1.func1;