Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/src/main/java/org/apache/iceberg/AllManifestsTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public class AllManifestsTable extends BaseMetadataTable {
Types.NestedField.required(11, "contains_nan", Types.BooleanType.get()),
Types.NestedField.optional(12, "lower_bound", Types.StringType.get()),
Types.NestedField.optional(13, "upper_bound", Types.StringType.get())
)))
))),
Types.NestedField.optional(14, "content", Types.IntegerType.get(), "Contents of the manifest: 0=data, 1=deletes")
);

AllManifestsTable(TableOperations ops, Table table) {
Expand Down
6 changes: 4 additions & 2 deletions core/src/main/java/org/apache/iceberg/ManifestsTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public class ManifestsTable extends BaseMetadataTable {
Types.NestedField.required(11, "contains_nan", Types.BooleanType.get()),
Types.NestedField.optional(12, "lower_bound", Types.StringType.get()),
Types.NestedField.optional(13, "upper_bound", Types.StringType.get())
)))
))),
Types.NestedField.required(14, "content", Types.IntegerType.get(), "Contents of the manifest: 0=data, 1=deletes")
);

private final PartitionSpec spec;
Expand Down Expand Up @@ -94,7 +95,8 @@ static StaticDataTask.Row manifestFileToRow(PartitionSpec spec, ManifestFile man
manifest.addedFilesCount(),
manifest.existingFilesCount(),
manifest.deletedFilesCount(),
partitionSummariesToRows(spec, manifest.partitions())
partitionSummariesToRows(spec, manifest.partitions()),
manifest.content().id()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ public void testManifestsTable() {
.set("upper_bound", "1")
.build()
))
.set("content", manifest.content().id())
.build()
);

Expand Down Expand Up @@ -772,6 +773,7 @@ public void testAllManifestsTable() {
.set("upper_bound", "1")
.build()
))
.set("content", manifest.content().id())
.build()
));

Expand Down