prestodb/presto · error · SQLFeatureNotSupportedException
getSQLXML
Error message
getSQLXML
What it means
PrestoResultSet has no SQLXML support: getSQLXML is a stub that unconditionally throws SQLFeatureNotSupportedException, echoing the method name. Calling it to fetch an XML-typed column is the trigger; the driver never produces this error on its own.
Source
Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1370
@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)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getSQLXML");
}
@Override
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateSQLXML");
}
@Override
public void updateSQLXML(String columnLabel, SQLXML xmlObject)View on GitHub (pinned to 55bb57d202)
Solutions
- Read XML data as a String with getString and parse it in application code
- Use VARCHAR-typed columns for XML content instead of SQLXML mappings
- Avoid SQLXML APIs with the Presto JDBC driver
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1370 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/0e524a1bd9f63242.
Report an issue: GitHub.