Skip to main content
Version: current [26.x]

SYS.RESULTS_CACHE

The sys.results_cache table shows the state of the results cache for a Dremio instance. Each row represents a cached query result entry.

Syntax
SELECT *
FROM sys.results_cache

Example Output

cache_keyjob_idcreated_timestamplast_access_timestampcache_locationfile_size_kbcache_statusmessageuser
a1b2c3d4-e5f6-7890-abcd-ef12345678901e011d6d-722e-7cc6-2b99-ec4c36b1d4002024-03-15 10:23:45.1232024-03-15 11:05:12.456/results/a1b2c3d4128READYempty text[email protected]
b2c3d4e5-f6a7-8901-bcde-f123456789012f122e7e-833f-8dd7-3caa-fd5d47c2e5112024-03-15 09:10:00.0002024-03-15 09:10:00.000/results/b2c3d4e5512ERROR_RETRYABLEUnable to cache query result because query result exceeds limit. Current limit: 20MB[email protected]

Columns

ColumnData TypeDescription
cache_keyvarcharThe unique identifier for the cached result.
job_idvarcharThe ID of the job that produced the cached result.
created_timestamptimestampThe date and time when the cache entry was created.
last_access_timestamptimestampThe date and time when the cache entry was last accessed.
cache_locationvarcharThe storage location of the cached result.
file_size_kbbigintThe size of the cached result in kilobytes.
cache_statusvarcharThe current status of the cache entry. Enum:
  • ERROR_NO_RETRY: An unrecoverable error occurred when writing the cache entry. The system will not attempt to cache results for this query again.
  • ERROR_RETRYABLE: A recoverable error occurred when writing the cache entry. The system will attempt to cache results again if the same query is submitted.
  • READY: The cache entry is available.
  • UNKNOWN: The status cannot be determined.
messagevarcharAdditional status or error information for the cache entry.
uservarcharThe username of the user who ran the query that produced the cached result.