yihua opened a new issue, #20842: URL: https://github.com/apache/hudi/issues/20842
A Spark SQL DELETE whose condition is always false still writes a commit on a Hudi table: ```sql DELETE FROM t WHERE false; DELETE FROM t WHERE 1 > null; DELETE FROM t WHERE name = null; ``` Spark's optimizer turns the filter into an empty `LocalRelation`, but `DeleteHoodieTableCommand` still starts an instant and completes it as an empty commit, so every such statement adds an empty instant to the timeline. Proposal: skip the write when the optimized input of the DELETE is an empty local relation. -- 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]
