clearComputeNodeCache
Syntax
clearComputeNodeCache(database, [table], [partition])
Arguments
database is a string indicating the database name.
table (optional) is a string indicating the table name. It can contain the following wildcards:
-
"*" (default): matches all;
-
"?": matches a single character;
-
"%": matches 0, 1 or more characters.
partition (optional) is a STRING scalar or vector indicating the DFS path of a partition. If partition is not specified, it indicates all partitions.
Details
Call the function on a compute node within a compute group to clear the memory and disk cache.
Note: Executing this function does not guarantee that all cached data will be cleared.
Examples
Clear the memory cache and disk cache of the “database_compute” database.
clearComputeNodeCache("dfs://database_compute")
Clear the memory cache and disk cache of tables with the prefix of “pt” in the “database_compute” database.
clearComputeNodeCache("dfs://database_compute","pt%")