yuqi1129 opened a new pull request, #12243: URL: https://github.com/apache/gravitino/pull/12243
### What changes were proposed in this pull request? Add an active-record condition to the PostgreSQL table version soft-delete SQL and add a regression test for the generated SQL. ### Why are the changes needed? Repeated soft deletes could update an already deleted table version. When both updates generated the same millisecond timestamp, PostgreSQL reported a duplicate key violation. Fix: #12238 ### Does this PR introduce _any_ user-facing change? No API or configuration changes. Repeated PostgreSQL table version soft deletes no longer fail with a duplicate key violation. ### How was this patch tested? - `./gradlew spotlessApply` - `./gradlew :core:test --tests org.apache.gravitino.storage.relational.mapper.provider.postgresql.TestTableVersionPostgreSQLProvider -PskipITs -PskipDockerTests=false` - `./gradlew :core:check -PskipITs -PskipDockerTests=false` -- 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]
