REFRESHREFRESH

使包含给定数据源路径的所有数据集的所有缓存数据(以及关联的元数据)无效并刷新。Invalidates and refreshes all the cached data (and the associated metadata) for all Datasets that contains the given data source path. 路径匹配通过前缀进行,也就是说,/ 会使缓存的所有内容无效。Path matching is by prefix, that is, / would invalidate everything that is cached.

语法Syntax

REFRESH resource_path

参数Parameters

  • resource_pathresource_path

    要刷新的资源的路径。The path of the resource that is to be refreshed.

示例Examples

-- The Path is resolved using the datasource's File Index.
CREATE TABLE test(ID INT) using parquet;
INSERT INTO test SELECT 1000;
CACHE TABLE test;
INSERT INTO test SELECT 100;
REFRESH "hdfs://path/to/table";