stevenzwu commented on code in PR #15575:
URL: https://github.com/apache/iceberg/pull/15575#discussion_r2913491491
##########
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.10.0, will be removed in 1.12.0; use {@link
#readPaths(ManifestFile,
Review Comment:
next release in 1.11.0. so it should be `since 1.11.0`
##########
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.10.0, will be removed in 1.12.0; use {@link
#readPaths(ManifestFile,
Review Comment:
next release is 1.11.0. so it should be `since 1.11.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]