pvary commented on code in PR #15575:
URL: https://github.com/apache/iceberg/pull/15575#discussion_r2910184301


##########
core/src/main/java/org/apache/iceberg/ManifestFiles.java:
##########
@@ -97,14 +97,30 @@ public static CacheMetricsReport contentCacheStats(FileIO 
io) {
    *
    * @param manifest a ManifestFile
    * @param io a FileIO
+   * @param specsById a Map from spec ID to partition spec
    * @return a manifest reader
    */
-  public static CloseableIterable<String> readPaths(ManifestFile manifest, 
FileIO io) {
+  public static CloseableIterable<String> readPaths(
+      ManifestFile manifest, FileIO io, Map<Integer, PartitionSpec> specsById) 
{
     return CloseableIterable.transform(
-        read(manifest, io, 
null).select(ImmutableList.of("file_path")).liveEntries(),
+        read(manifest, io, 
specsById).select(ImmutableList.of("file_path")).liveEntries(),
         entry -> entry.file().location());
   }
 
+  /**
+   * Returns a {@link CloseableIterable} of file paths in the {@link 
ManifestFile}.
+   *
+   * @param manifest a ManifestFile
+   * @param io a FileIO
+   * @return a manifest reader
+   * @deprecated since 1.11.0, will be removed in 2.0.0; use {@link 
#readPaths(ManifestFile, FileIO,

Review Comment:
   This is core, so theoretically we could remove them in 1.12.0.



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