{"record":{"id":"c74911e7c034cb7b","repo":"prestodb/presto","slug":"isexplaintypevalidate-method-is-not-supported","errorCode":null,"errorMessage":"isExplainTypeValidate method is not supported!","messagePattern":"isExplainTypeValidate method is not supported!","errorType":"exception","errorClass":"java.lang.UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java","lineNumber":65,"sourceCode":"\n    public boolean isTransactionControlStatement()\n    {\n        throw new UnsupportedOperationException(\"isTransactionControlStatement method is not supported!\");\n    }\n\n    public boolean isRollbackStatement()\n    {\n        throw new UnsupportedOperationException(\"isRollbackStatement method is not supported!\");\n    }\n\n    public Class<?> getStatementClass()\n    {\n        throw new UnsupportedOperationException(\"getStatementClass method is not supported!\");\n    }\n\n    public boolean isExplainTypeValidate()\n    {\n        throw new UnsupportedOperationException(\"isExplainTypeValidate method is not supported!\");\n    }\n}\n","sourceCodeStart":47,"sourceCodeEnd":68,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java#L47-L68","documentation":"PreparedQuery is a generic wrapper over already-analyzed queries and does not carry the raw AST information needed to answer whether the underlying statement is an EXPLAIN ... TYPE VALIDATE. The method is a sentinel that always throws UnsupportedOperationException to signal the query is unavailable in this representation.","triggerScenarios":"Thrown at presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the PreparedQuery subclass that wraps the analyzed Statement","Check the ExplainType from query analysis at the call site"],"exampleFix":null,"handlingStrategy":"type-guard","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"}