prestodb/presto · error
NOT_SUPPORTED
NOT_SUPPORTED
Error message
Unsupported type
What it means
getLong was called for a column whose type is not in the long-coercible set handled by this cursor (BIGINT, INTEGER, DATE, TIME, TIMESTAMP, etc.). The connector schema and the Accumulo column types disagree, so the value cannot be produced as a long.
Source
Thrown at presto-accumulo/src/main/java/com/facebook/presto/accumulo/io/AccumuloRecordCursor.java:237
return serializer.getInt(fieldToColumnName[field]);
}
else if (type.equals(REAL)) {
return Float.floatToIntBits(serializer.getFloat(fieldToColumnName[field]));
}
else if (type.equals(SMALLINT)) {
return serializer.getShort(fieldToColumnName[field]);
}
else if (type.equals(TIME)) {
return serializer.getTime(fieldToColumnName[field]).getTime();
}
else if (type.equals(TIMESTAMP)) {
return serializer.getTimestamp(fieldToColumnName[field]).getTime();
}
else if (type.equals(TINYINT)) {
return serializer.getByte(fieldToColumnName[field]);
}
else {
throw new PrestoException(NOT_SUPPORTED, "Unsupported type " + getType(field));
}
}
@Override
public Object getObject(int field)
{
Type type = getType(field);
checkArgument(Types.isArrayType(type) || Types.isMapType(type), "Expected field %s to be a type of array or map but is %s", field, type);
if (Types.isArrayType(type)) {
return serializer.getArray(fieldToColumnName[field], type);
}
return serializer.getMap(fieldToColumnName[field], type);
}
@Override
public Slice getSlice(int field)View on GitHub (pinned to 55bb57d202)
Solutions
- Check the column type in the Presto schema and read the column with the matching getter (getDouble/getSlice/etc.)
- Cast the column in SQL to a long-compatible type
- Fix the column encoder configured at ingest so the type matches
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at presto-accumulo/src/main/java/com/facebook/presto/accumulo/io/AccumuloRecordCursor.java:237 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
Background: Presto NOT_SUPPORTED error: what "not supported" means and how to fix it — this error's family across 3 libraries.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/ae67bd1c0b5d7ee8.
Report an issue: GitHub.