@@ -237,9 +237,7 @@ def test_delete_partitioned_table_positional_deletes(spark: SparkSession, sessio
237237 # Will rewrite a data file without the positional delete
238238 tbl .delete (EqualTo ("number" , 40 ))
239239
240- # One positional delete has been added, but an OVERWRITE status is set
241- # https://github.com/apache/iceberg/issues/10122
242- assert [snapshot .summary .operation .value for snapshot in tbl .snapshots ()] == ["append" , "overwrite" , "overwrite" ]
240+ assert [snapshot .summary .operation .value for snapshot in tbl .snapshots ()] == ["append" , "delete" , "overwrite" ]
243241 assert tbl .scan ().to_arrow ().to_pydict () == {"number_partitioned" : [10 ], "number" : [20 ]}
244242
245243
@@ -410,8 +408,6 @@ def test_overwrite_partitioned_table(spark: SparkSession, session_catalog: RestC
410408 # Will rewrite a data file without the positional delete
411409 tbl .overwrite (arrow_tbl , "number_partitioned == 10" )
412410
413- # One positional delete has been added, but an OVERWRITE status is set
414- # https://github.com/apache/iceberg/issues/10122
415411 assert [snapshot .summary .operation .value for snapshot in tbl .snapshots ()] == ["append" , "delete" , "append" ]
416412 assert tbl .scan ().to_arrow ().to_pydict () == {"number_partitioned" : [10 , 10 , 20 ], "number" : [4 , 5 , 3 ]}
417413
@@ -461,13 +457,11 @@ def test_partitioned_table_positional_deletes_sequence_number(spark: SparkSessio
461457 # Will rewrite a data file without a positional delete
462458 tbl .delete (EqualTo ("number" , 201 ))
463459
464- # One positional delete has been added, but an OVERWRITE status is set
465- # https://github.com/apache/iceberg/issues/10122
466460 snapshots = tbl .snapshots ()
467461 assert len (snapshots ) == 3
468462
469463 # Snapshots produced by Spark
470- assert [snapshot .summary .operation .value for snapshot in tbl .snapshots ()[0 :2 ]] == ["append" , "overwrite " ]
464+ assert [snapshot .summary .operation .value for snapshot in tbl .snapshots ()[0 :2 ]] == ["append" , "delete " ]
471465
472466 # Will rewrite one parquet file
473467 assert snapshots [2 ].summary == Summary (
0 commit comments