qqqttt123 commented on code in PR #9815:
URL: https://github.com/apache/gravitino/pull/9815#discussion_r2741304922
##########
core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/OwnerMetaPostgreSQLProvider.java:
##########
@@ -135,4 +35,10 @@ public String deleteOwnerMetasByLegacyTimeline(
+ OWNER_TABLE_NAME
+ " WHERE deleted_at > 0 AND deleted_at < #{legacyTimeline} LIMIT
#{limit})";
}
+
+ @Override
+ protected String softDeleteSQL(Optional<String> tableAlias) {
+ // PostgreSQL doesn't support alias prefix in SET clause
+ return " SET deleted_at = CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP) *
1000 AS BIGINT) ";
Review Comment:
It will repeat many times. Every PostgresSQLProvider will repeat for many
times. I want to reduce the similar code by using method.
--
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]