FUNGSI REFRESH

Berlaku untuk:centang ditandai ya Databricks Runtime

Membatalkan entri fungsi {i>cachecacheCacheREFRESH FUNCTION hanya berfungsi untuk fungsi permanen. Menyegarkan fungsi asli atau fungsi sementara akan menyebabkan pengecualian.

Sintaks

REFRESH FUNCTION function_name

Lihat Cache disk vs. Cache Spark untuk perbedaan antara penembolokan disk dan cache Apache Spark.

Parameter

  • function_name

    Nama fungsi. Jika nama dalam skema saat ini tidak memenuhi syarat digunakan.

Contoh

-- 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;