prestodb/presto · error · SQLFeatureNotSupportedException

updateNClob

Error message

updateNClob

What it means

PrestoResultSet does not support NClob updates: updateNClob is an unconditional sentinel that throws SQLFeatureNotSupportedException with its own name as the message. It exists only to satisfy the ResultSet interface and fires on any client call.

Source

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

    @Override
    public void updateNString(int columnIndex, String nString)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateNString");
    }

    @Override
    public void updateNString(String columnLabel, String nString)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateNString");
    }

    @Override
    public void updateNClob(int columnIndex, NClob nClob)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateNClob");
    }

    @Override
    public void updateNClob(String columnLabel, NClob nClob)
            throws SQLException
    {
        throw new SQLFeatureNotSupportedException("updateNClob");
    }

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

    @Override
    public NClob getNClob(String columnLabel)

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Modify NCLOB data via explicit UPDATE statements
  2. Retrieve large character data as String with getString
  3. Avoid NClob update APIs with the Presto driver
Defensive patterns

Strategy: try-catch

When it happens

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