Skip to content

Commit

Permalink
Core: Remove deprecated Util.blockLocations method and StructCopy cla…
Browse files Browse the repository at this point in the history
…ss (#12320)
  • Loading branch information
ebyhr authored Feb 20, 2025
1 parent d6d97d1 commit 3dc4a54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 75 deletions.
5 changes: 5 additions & 0 deletions .palantir/revapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,11 @@ acceptedBreaks:
\ java.util.function.Consumer<T>)"
justification: "Removing deprecated code"
"1.8.0":
org.apache.iceberg:iceberg-core:
- code: "java.method.removed"
old: "method java.lang.String[] org.apache.iceberg.hadoop.Util::blockLocations(org.apache.iceberg.CombinedScanTask,\
\ org.apache.hadoop.conf.Configuration)"
justification: "Removing deprecated code"
org.apache.iceberg:iceberg-parquet:
- code: "java.class.visibilityReduced"
old: "class org.apache.iceberg.data.parquet.BaseParquetReaders<T extends java.lang.Object>"
Expand Down
10 changes: 0 additions & 10 deletions core/src/main/java/org/apache/iceberg/hadoop/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.apache.hadoop.fs.BlockLocation;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.iceberg.CombinedScanTask;
import org.apache.iceberg.ContentScanTask;
import org.apache.iceberg.FileScanTask;
import org.apache.iceberg.ScanTask;
Expand Down Expand Up @@ -59,15 +58,6 @@ public static FileSystem getFs(Path path, Configuration conf) {
}
}

/**
* @deprecated since 1.8.0, will be removed in 1.9.0; use {@link
* Util#blockLocations(ScanTaskGroup, Configuration)} instead.
*/
@Deprecated
public static String[] blockLocations(CombinedScanTask task, Configuration conf) {
return blockLocations((ScanTaskGroup<FileScanTask>) task, conf);
}

public static String[] blockLocations(ScanTaskGroup<FileScanTask> taskGroup, Configuration conf) {
Set<String> locationSets = Sets.newHashSet();
for (FileScanTask f : taskGroup.tasks()) {
Expand Down
65 changes: 0 additions & 65 deletions core/src/main/java/org/apache/iceberg/io/StructCopy.java

This file was deleted.

0 comments on commit 3dc4a54

Please sign in to comment.