{"record":{"id":"375d703d9f7ba53c","repo":"prestodb/presto","slug":"isrollbackstatement-method-is-not-supported","errorCode":null,"errorMessage":"isRollbackStatement method is not supported!","messagePattern":"isRollbackStatement 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":55,"sourceCode":"\n    public Optional<String> getPrepareSql()\n    {\n        return prepareSql;\n    }\n\n    public Optional<QueryType> getQueryType()\n    {\n        throw new UnsupportedOperationException(\"getQueryType method is not supported!\");\n    }\n\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":37,"sourceCodeEnd":68,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java#L37-L68","documentation":"Same unsupported-operations guard as its siblings: isRollbackStatement is called on a PreparedQuery instance that was not built with statement-analysis information, so transaction-control classification is impossible.","triggerScenarios":"Thrown at presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the PreparedQuery subclass that wraps the analyzed Statement","Check the statement class directly where the Statement is available"],"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"}