REFRESH

Description

REFRESH is used to invalidate and refresh all the cached data (and the associated metadata) for all Datasets that contains the given data source path. Path matching is by prefix, i.e. “/” would invalidate everything that is cached.

Syntax

  1. REFRESH resource_path

Parameters

  • resource_path

    The path of the resource that is to be refreshed.

Examples

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