prestodb/presto · error · SQLFeatureNotSupportedException
getNClob
Error message
getNClob
What it means
Sentinel accessor in PrestoResultSet: getNClob always throws SQLFeatureNotSupportedException with the method name as the message because national-character Lob reads are not implemented by the Presto JDBC driver.
Source
Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1356
@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)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getNClob");
}
@Override
public SQLXML getSQLXML(int columnIndex)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getSQLXML");
}
@Override
public SQLXML getSQLXML(String columnLabel)View on GitHub (pinned to 55bb57d202)
Solutions
- Read the column as a String via getString instead of getNClob
- Cast/convert in application code if NClob-like semantics are required
- Avoid NClob getters when using Presto result sets
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1356 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/8bb5dfd03403ee2a.
Report an issue: GitHub.