prestodb/presto · error · PrestoException

INVALID_PROCEDURE_ARGUMENT

INVALID_PROCEDURE_ARGUMENT

Error message

Directory list cache is not enabled on this catalog

What it means

doInvalidateDirectoryListCache guard: the catalog is not configured with hive.cache.use-list-directory-cache (directory listing cache disabled), so calling the $invalidate_directory_list_cache procedure has nothing to invalidate and fails.

Source

Thrown at presto-hive/src/main/java/com/facebook/presto/hive/DirectoryListCacheInvalidationProcedure.java:77

                        new Argument("directory_path", VARCHAR, false, null)),
                CACHE_DATA_INVALIDATION.bindTo(this));
    }

    public void directoryListCacheInvalidation(ConnectorSession session, String directoryPath)
    {
        try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(getClass().getClassLoader())) {
            doInvalidateDirectoryListCache(session, Optional.ofNullable(directoryPath));
        }
    }

    private void doInvalidateDirectoryListCache(ConnectorSession session, Optional<String> directoryPath)
    {
        if (isUseListDirectoryCache(session)) {
            CachingDirectoryLister cachingDirectoryLister = (CachingDirectoryLister) directoryLister;
            cachingDirectoryLister.invalidateDirectoryListCache(directoryPath);
        }
        else {
            throw new PrestoException(INVALID_PROCEDURE_ARGUMENT, "Directory list cache is not enabled on this catalog");
        }
    }
}

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Enable the directory-listing cache in the catalog configuration
  2. Do not call the invalidation procedure on this catalog
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at presto-hive/src/main/java/com/facebook/presto/hive/DirectoryListCacheInvalidationProcedure.java:77 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04). Data as JSON: /api/errors/b963aa12c2dabfb0. Report an issue: GitHub.