private static TrinoException handleException(OrcDataSourceId dataSourceId, Exception exception) {
    if (exception instanceof TrinoException) {
      return (TrinoException) exception;
    }
    if (exception instanceof OrcCorruptionException) {
      return new TrinoException(ICEBERG_BAD_DATA, exception);
    }
    return new TrinoException(
        ICEBERG_CURSOR_ERROR, format("Failed to read ORC file: %s", dataSourceId), exception);
  }
Creates a mapping between the input {@code columns} and base columns if required.
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/amoro/trino/unkeyed/IcebergPageSourceProvider.java