Core: delete temp metadata file when version already exists
When using HadoopCatalog, renameToFinal would fail with version already exists exception, we should also delete the temp metadata file in this case.
@rdblue please help to review this PR, thanks.
This makes sense. @leesf Could you add a test so we don't break this in the future?
@Fokko Added check to the existing UT with dist file already exists failure.
@leesf Thanks! Can you run ./gradlew :iceberg-core:spotlessApply to fix the formatting? Thanks!
./gradlew :iceberg-core:spotlessApply
@Fokko Done and thanks.
@Fokko I think the PR to good the merge, thanks.
@Fokko hi, anything need to resolve here to merge the PR?
@nastra I pushed an update to fix the ut updated by your push.