This is an automated email from the ASF dual-hosted git repository.

stevenwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new ece6b8e773 Core: Deprecate PositionDeleteReaderWriter.writer with 
rowSchema (#14651)
ece6b8e773 is described below

commit ece6b8e7734cdcb7aeca6c59085fe2cce5216c79
Author: pvary <[email protected]>
AuthorDate: Fri Nov 21 17:20:55 2025 +0100

    Core: Deprecate PositionDeleteReaderWriter.writer with rowSchema (#14651)
---
 .../main/java/org/apache/iceberg/RewriteTablePathUtil.java   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/core/src/main/java/org/apache/iceberg/RewriteTablePathUtil.java 
b/core/src/main/java/org/apache/iceberg/RewriteTablePathUtil.java
index 6f58b29315..40aec92744 100644
--- a/core/src/main/java/org/apache/iceberg/RewriteTablePathUtil.java
+++ b/core/src/main/java/org/apache/iceberg/RewriteTablePathUtil.java
@@ -576,6 +576,18 @@ public class RewriteTablePathUtil {
   public interface PositionDeleteReaderWriter extends Serializable {
     CloseableIterable<Record> reader(InputFile inputFile, FileFormat format, 
PartitionSpec spec);
 
+    default PositionDeleteWriter<Record> writer(
+        OutputFile outputFile, FileFormat format, PartitionSpec spec, 
StructLike partition)
+        throws IOException {
+      return writer(outputFile, format, spec, partition, null);
+    }
+
+    /**
+     * @deprecated This method is deprecated as of version 1.11.0 and will be 
removed in 1.12.0.
+     *     Position deletes that include row data are no longer supported. Use 
{@link
+     *     #writer(OutputFile, FileFormat, PartitionSpec, StructLike)} instead.
+     */
+    @Deprecated
     PositionDeleteWriter<Record> writer(
         OutputFile outputFile,
         FileFormat format,

Reply via email to