hudi-bot opened a new issue, #16026:
URL: https://github.com/apache/hudi/issues/16026

   Could not execute delete operation twice for an empty table.
   How to reproduce:
   {code:java}
   create table hudi_cow (  uuid int,  name string) using hudi tblproperties (  
primaryKey = 'uuid');
   
   delete from hudi_cow where 1!=1;
   
   // delete again
   delete from hudi_cow where 1!=1; {code}
   Error message:
   {code:java}
   org.apache.hudi.exception.HoodieIOException: Latest commit does not have any 
schema in commit metadata
       at 
org.apache.hudi.client.BaseHoodieWriteClient.setWriteSchemaForDeletes(BaseHoodieWriteClient.java:1255)
       at 
org.apache.hudi.client.BaseHoodieWriteClient.initTable(BaseHoodieWriteClient.java:1207)
       at 
org.apache.hudi.client.SparkRDDWriteClient.delete(SparkRDDWriteClient.java:242)
       at 
org.apache.hudi.DataSourceUtils.doDeleteOperation(DataSourceUtils.java:227)
       at 
org.apache.hudi.HoodieSparkSqlWriter$.write(HoodieSparkSqlWriter.scala:287)
       at org.apache.hudi.DefaultSource.createRelation(DefaultSource.scala:153) 
{code}
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-6378
   - Type: Bug


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

Reply via email to