tomtongue commented on code in PR #16859:
URL: https://github.com/apache/iceberg/pull/16859#discussion_r4739942107
##########
core/src/main/java/org/apache/iceberg/MetadataLogEntriesTable.java:
##########
@@ -57,20 +84,44 @@ public Schema schema() {
return METADATA_LOG_ENTRIES_SCHEMA;
}
- private DataTask task(TableScan scan) {
+ private DataTask task(StaticTableScan scan) {
TableMetadata current = table().operations().current();
List<TableMetadata.MetadataLogEntry> metadataLogEntries =
Lists.newArrayList(current.previousFiles().listIterator());
metadataLogEntries.add(
new TableMetadata.MetadataLogEntry(
current.lastUpdatedMillis(), current.metadataFileLocation()));
+ FileIO io = table().io();
+ Schema projectedSchema = scan.schema();
+ boolean shouldLoadProperties =
projectedSchema.findField(PROPERTIES.fieldId()) != null;
+ ConcurrentMap<String, Map<String, String>> propertiesByMetadataFile =
Maps.newConcurrentMap();
+
+ if (shouldLoadProperties) {
+ propertiesByMetadataFile.put(current.metadataFileLocation(),
current.properties());
+
+ Tasks.Builder<TableMetadata.MetadataLogEntry> propertyLoadTasks =
+ Tasks.foreach(current.previousFiles()).stopOnFailure();
Review Comment:
Thanks for the comment. Yes, they are needed, and addressed the comment in
the new commit.
--
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]