rdblue commented on code in PR #19030:
URL: https://github.com/apache/iceberg/pull/19030#discussion_r4659236091


##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -59,6 +63,31 @@ class V4ManifestReader extends CloseableGroup implements 
CloseableIterable<Track
           TrackedFile.CONTENT_TYPE.fieldId(), // needed for content filtering
           TrackedFile.RECORD_COUNT.fieldId()); // needed for first_row_id 
assignment and filtering
 
+  /**
+   * Reads leaf manifest locations from a root manifest file.
+   *
+   * @param root a root {@link ManifestFile}
+   * @param io a {@link FileIO}
+   * @return a list of manifest locations tracked by the root manifest
+   */
+  static List<String> readManifestLocations(ManifestFile root, FileIO io) {
+    try (V4ManifestReader reader =
+        builder(root, io, new Schema(), ImmutableMap.of())
+            .metricsConfig(MetricsConfig.getDefault())
+            .select(TrackedFile.CONTENT_TYPE.name(), 
TrackedFile.LOCATION.name())

Review Comment:
   The idea here was that this method accesses `contentType()` so it should be 
requested, even if the reader's internal behavior is to project it either way.



-- 
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]

Reply via email to