prestodb/presto · error · PrestoException

NOT_SUPPORTED

NOT_SUPPORTED

Error message

Unsupported file format: ${format}

What it means

FileFormat.fromIcebergFileFormat maps Iceberg's FileFormat enum to Presto's; the switch default throws NOT_SUPPORTED for any format value not in ORC/PARQUET/AVRO/METADATA/PUFFIN, meaning the data or metadata file uses a format this Presto build cannot read.

Source

Thrown at presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileFormat.java:71

        FileFormat prestoFileFormat;
        switch (format) {
            case ORC:
                prestoFileFormat = ORC;
                break;
            case PARQUET:
                prestoFileFormat = PARQUET;
                break;
            case AVRO:
                prestoFileFormat = AVRO;
                break;
            case METADATA:
                prestoFileFormat = METADATA;
                break;
            case PUFFIN:
                prestoFileFormat = PUFFIN;
                break;
            default:
                throw new PrestoException(NOT_SUPPORTED, "Unsupported file format: " + format);
        }

        return prestoFileFormat;
    }

    public org.apache.iceberg.FileFormat toIceberg()
    {
        org.apache.iceberg.FileFormat fileFormat;
        switch (this) {
            case ORC:
                fileFormat = org.apache.iceberg.FileFormat.ORC;
                break;
            case PARQUET:
                fileFormat = org.apache.iceberg.FileFormat.PARQUET;
                break;
            case AVRO:
                fileFormat = org.apache.iceberg.FileFormat.AVRO;
                break;

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Upgrade Presto to a release supporting the file format in question
  2. Rewrite/compact the table so files use supported formats (ORC/Parquet/AVRO)
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at presto-iceberg/src/main/java/com/facebook/presto/iceberg/FileFormat.java:71 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/052e6e48c6d37967. Report an issue: GitHub.