apache/shardingsphere · error · SQLFeatureNotSupportedException

updateRef

Error message

updateRef

What it means

Error "updateRef" thrown in apache/shardingsphere.

Source

Thrown at kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/resultset/AbstractUnsupportedUpdateOperationSQLFederationResultSet.java:324

    
    @Override
    public final void updateObject(final String columnLabel, final Object x) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateObject");
    }
    
    @Override
    public final void updateObject(final int columnIndex, final Object x, final int scaleOrLength) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateObject");
    }
    
    @Override
    public final void updateObject(final String columnLabel, final Object x, final int scaleOrLength) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateObject");
    }
    
    @Override
    public final void updateRef(final int columnIndex, final Ref x) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateRef");
    }
    
    @Override
    public final void updateRef(final String columnLabel, final Ref x) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateRef");
    }
    
    @Override
    public final void updateBlob(final int columnIndex, final Blob x) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateBlob");
    }
    
    @Override
    public final void updateBlob(final String columnLabel, final Blob x) throws SQLException {
        throw new SQLFeatureNotSupportedException("updateBlob");
    }
    
    @Override

View on GitHub (pinned to e952770a21)

Solutions

  1. updateRef is not supported on SQL federation result sets; avoid calling it.
  2. Rewrite the logic to update through a regular DML statement.

When it happens

Trigger: updateRef is invoked on a read-only SQL federation result set.

Common situations: Updatable-result-set code paths executed against federated query results.


AI-assisted analysis of apache/shardingsphere@e952770a21 (2026-08-14). Data as JSON: /api/errors/fefb8a730d90118b. Report an issue: GitHub.