Never mind, it was probably because a wrong runtime library was used

From: Xingyuan Lin <[email protected]>
Date: Wednesday, December 4, 2019 at 4:56 PM
To: "[email protected]" <[email protected]>
Subject: An exception is thrown when calling snapshot.manifests().forEach()

Hi Iceberg team,

I’m encountering a weird error which throws an exception as the following:

java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot 
be cast to org.apache.iceberg.ManifestFile

The code snippet which causes it is:
List<ManifestFile> manifestFiles = snapshot.manifests();
for (ManifestFile manifestFile : manifestFiles) {
    ...
}

Do you have a rough idea about what’s probably going on?

Thank you in advance,
Xingyuan

Reply via email to