Zhanxiao-Ma opened a new issue, #14343:
URL: https://github.com/apache/iceberg/issues/14343

   ### Apache Iceberg version
   
   1.10.0 (latest release)
   
   ### Query engine
   
   Other
   
   ### Please describe the bug 🐞
   
   Describe:
   Table Schema: a, b, c
   1 Select column a as the partition column and write data (DataFile1 with 
partition info).
   2 Call the interface Table.updateSpec().removeField() to remove the 
partition information.
   3 Then call the interface Table.updateSchema().deleteColumn("a").
   4 Execute Table.newDelete().deleteFile(DataFile1).commit(), but it throws an 
error:
   
   I can reproduce this issue by writing the following test method in the 
org.apache.iceberg.TestOverwrite test class.
   
   `  @TestTemplate
     public void testDeleteUnknownPartition() {
       Table table1 = this.table;
       table1.newAppend().appendFile(FILE_0_TO_4).commit();
       
table1.updateSpec().removeField(specs.get(0).fields().get(0).name()).commit();
       table1.updateSchema().deleteColumn("date").commit();
       table1.newDelete().deleteFile(FILE_0_TO_4).commit();;
     }`
   
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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