REFRESH TABLE

Gäller för:markerad ja Databricks Runtime

Ogiltigförklarar cachelagrade poster för Apache Spark-cache, som innehåller data och metadata för den angivna tabellen eller vyn. Den ogiltiga cachen fylls i uppskjutet när den cachelagrade tabellen eller frågan som är associerad med den körs igen.

Se UPPDATERA (MATERIALISERAD VY och STRÖMMANDE TABELL) för att uppdatera data i strömmande tabeller och materialiserade vyer.

Syntax

REFRESH [TABLE] table_name

Se Diskcache jämfört med Spark-cache för skillnaderna mellan diskcachelagring och Apache Spark-cachen.

Parametrar

Exempel

-- The cached entries of the table is refreshed
-- The table is resolved from the current schema as the table name is unqualified.
> REFRESH TABLE tbl1;

-- The cached entries of the view is refreshed or invalidated
-- The view is resolved from tempDB schema, as the view name is qualified.
> REFRESH TABLE tempDB.view1;