kyle-cx opened a new issue, #4523: URL: https://github.com/apache/iceberg/issues/4523
> I read this code from https://iceberg.apache.org/docs/latest/api/ <img width="855" alt="image" src="https://user-images.githubusercontent.com/10529123/162132607-aaa37ea7-2ee1-46b1-b6d5-ff539e79a73c.png"> > I tried to read metadata tables by IcebergGenerics, here is my code ``` Table metaTable = MetadataTableUtils.createMetadataTableInstance(table, MetadataTableType.ALL_ENTRIES); CloseableIterable<Record> result = IcebergGenerics.read(metaTable) .build(); System.out.println(metaTable.schema()); for (Record r : result){ System.out.println(r); } ``` > This code does not work for all metadata tables, and I list the metadata types and the error msg | Metadata Type| Suc/Fail |Error Msg | | --- | --- | --- | |ENTRIES | SUCCESS || |FILES |FAIL|java.lang.IllegalArgumentException: Missing required field: file_path | |DATA_FILES |FAIL|java.lang.IllegalArgumentException: Missing required field: file_path | |DELETE_FILES |SUCCESS || |HISTORY |FAIL|java.lang.UnsupportedOperationException: Cannot read METADATA file: file:/var/folders/kh/r635hvrj26798c3sp4rjgssw0000gn/T/junit2264388598284163674/junit5703493110507800616/table/metadata/v3.metadata.json | |SNAPSHOTS |FAIL|java.lang.UnsupportedOperationException: Cannot read METADATA file: file:/var/folders/kh/r635hvrj26798c3sp4rjgssw0000gn/T/junit2632630966659593117/junit4958628408304881003/table/metadata/v3.metadata.json | |MANIFESTS |FAIL|java.lang.UnsupportedOperationException: Cannot read METADATA file: file:/var/folders/kh/r635hvrj26798c3sp4rjgssw0000gn/T/junit4701497166066558522/junit8779339111956504116/table/metadata/snap-523361246701539514-1-d4bdca38-62cd-451e-b54a-99214bfe5f6b.avro | |PARTITIONS |FAIL|java.lang.UnsupportedOperationException: Cannot read METADATA file: file:/var/folders/kh/r635hvrj26798c3sp4rjgssw0000gn/T/junit1338646187434636809/junit6047985098820496081/table/metadata/v3.metadata.json | |ALL_DATA_FILES |FAIL|java.lang.IllegalArgumentException: Missing required field: file_path | |ALL_MANIFESTS |FAIL|java.lang.IllegalArgumentException: Missing required field: path | |ALL_ENTRIES |SUCCESS || -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
