prestodb/presto · error · SQLFeatureNotSupportedException

updateRowId

Error message

updateRowId

What it means

Sentinel method in PrestoResultSet: updateRowId always throws SQLFeatureNotSupportedException (method name as message) because the Presto JDBC driver does not support RowId updates on result sets. The trigger is solely client code invoking it.

Source

Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1299

    @Override
    public RowId getRowId(int columnIndex)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("getRowId");
    }

    @Override
    public RowId getRowId(String columnLabel)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("getRowId");
    }

    @Override
    public void updateRowId(int columnIndex, RowId x)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateRowId");
    }

    @Override
    public void updateRowId(String columnLabel, RowId x)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateRowId");
    }

    @Override
    public int getHoldability()
            throws SQLException
    {
        checkOpen();
        return ResultSet.HOLD_CURSORS_OVER_COMMIT;
    }

    @Override

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Update the underlying table via SQL UPDATE statements keyed on unique columns
  2. Do not attempt RowId mutation through the Presto result set
  3. Catch SQLFeatureNotSupportedException if generic JDBC code paths may invoke this method
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1299 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/b4b223995c7be59a. Report an issue: GitHub.