{"record":{"id":"b963aa12c2dabfb0","repo":"prestodb/presto","slug":"invalid-procedure-argument-b963aa","errorCode":"INVALID_PROCEDURE_ARGUMENT","errorMessage":"Directory list cache is not enabled on this catalog","messagePattern":"Directory list cache is not enabled on this catalog","errorType":"error_code","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-hive/src/main/java/com/facebook/presto/hive/DirectoryListCacheInvalidationProcedure.java","lineNumber":77,"sourceCode":"                        new Argument(\"directory_path\", VARCHAR, false, null)),\n                CACHE_DATA_INVALIDATION.bindTo(this));\n    }\n\n    public void directoryListCacheInvalidation(ConnectorSession session, String directoryPath)\n    {\n        try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(getClass().getClassLoader())) {\n            doInvalidateDirectoryListCache(session, Optional.ofNullable(directoryPath));\n        }\n    }\n\n    private void doInvalidateDirectoryListCache(ConnectorSession session, Optional<String> directoryPath)\n    {\n        if (isUseListDirectoryCache(session)) {\n            CachingDirectoryLister cachingDirectoryLister = (CachingDirectoryLister) directoryLister;\n            cachingDirectoryLister.invalidateDirectoryListCache(directoryPath);\n        }\n        else {\n            throw new PrestoException(INVALID_PROCEDURE_ARGUMENT, \"Directory list cache is not enabled on this catalog\");\n        }\n    }\n}\n","sourceCodeStart":59,"sourceCodeEnd":81,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-hive/src/main/java/com/facebook/presto/hive/DirectoryListCacheInvalidationProcedure.java#L59-L81","documentation":"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.","triggerScenarios":"Thrown at presto-hive/src/main/java/com/facebook/presto/hive/DirectoryListCacheInvalidationProcedure.java:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable the directory-listing cache in the catalog configuration","Do not call the invalidation procedure on this catalog"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}