aokolnychyi commented on a change in pull request #675: Inherit snapshot ids
for manifest entries
URL: https://github.com/apache/incubator-iceberg/pull/675#discussion_r373481170
##########
File path: core/src/test/java/org/apache/iceberg/TableTestBase.java
##########
@@ -259,21 +255,14 @@ static void validateManifestEntries(ManifestFile
manifest,
Iterator<Long> ids,
Iterator<DataFile> expectedFiles,
Iterator<ManifestEntry.Status>
expectedStatuses) {
- validateManifestEntries(manifest.path(), ids, expectedFiles,
expectedStatuses);
- }
-
- static void validateManifestEntries(String manifest,
- Iterator<Long> ids,
- Iterator<DataFile> expectedFiles,
- Iterator<ManifestEntry.Status>
expectedStatuses) {
- for (ManifestEntry entry :
ManifestReader.read(localInput(manifest)).entries()) {
+ for (ManifestEntry entry : ManifestReader.read(manifest,
FILE_IO).entries()) {
DataFile file = entry.file();
DataFile expected = expectedFiles.next();
final ManifestEntry.Status expectedStatus = expectedStatuses.next();
Assert.assertEquals("Path should match expected",
expected.path().toString(), file.path().toString());
Assert.assertEquals("Snapshot ID should match expected ID",
- (long) ids.next(), entry.snapshotId());
+ (long) ids.next(), (long) entry.snapshotId());
Review comment:
Done
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]