ATUALIZAR TABELA

Aplica-se a:check marked yes Databricks Runtime

Invalida as entradas em cache da cache do Apache Spark, que incluem dados e metadados da tabela ou vista especificada. A cache invalidada é preenchida de forma preguiçosa quando a tabela em cache ou a consulta associada à mesma é novamente executada.

Veja ATUALIZAR (VISTA MATERIALIZADA e TABELA DE TRANSMISSÃO EM FLUXO) para atualizar os dados em tabelas de transmissão em fluxo e vistas materializadas.

Sintaxe

REFRESH [TABLE] table_name

Veja Colocação em cache automática e manual das diferenças entre a colocação em cache do disco e a cache do Apache Spark.

Parâmetros

Exemplos

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