presto-orc/src/main/java/io/prestosql/orc/reader/ReaderUtils.java/ReaderUtils/verifyStreamType
class ReaderUtils:    public static void verifyStreamType(OrcColumn column, Type actual, Predicate<Type> validTypes)
            throws OrcCorruptionException
    {
        if (validTypes.test(actual)) {
            return;
        }

        throw new OrcCorruptionException(
                column.getOrcDataSourceId(),
                "Can not read SQL type %s from ORC stream %s of type %s",
                actual,
                column.getPath(),
                column.getColumnType());
    }