prestodb/presto · error · java.lang.UnsupportedOperationException

isExplainTypeValidate method is not supported!

Error message

isExplainTypeValidate method is not supported!

What it means

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.

Source

Thrown at presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java:65

    public boolean isTransactionControlStatement()
    {
        throw new UnsupportedOperationException("isTransactionControlStatement method is not supported!");
    }

    public boolean isRollbackStatement()
    {
        throw new UnsupportedOperationException("isRollbackStatement method is not supported!");
    }

    public Class<?> getStatementClass()
    {
        throw new UnsupportedOperationException("getStatementClass method is not supported!");
    }

    public boolean isExplainTypeValidate()
    {
        throw new UnsupportedOperationException("isExplainTypeValidate method is not supported!");
    }
}

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Use the PreparedQuery subclass that wraps the analyzed Statement
  2. Check the ExplainType from query analysis at the call site
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at presto-common/src/main/java/com/facebook/presto/common/analyzer/PreparedQuery.java:65 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/c74911e7c034cb7b. Report an issue: GitHub.