yuqi1129 commented on code in PR #9032:
URL: https://github.com/apache/gravitino/pull/9032#discussion_r2499036015


##########
core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/PolicyMetaPostgreSQLProvider.java:
##########
@@ -51,7 +51,7 @@ public String deletePolicyMetasByLegacyTimeline(Long 
legacyTimeline, int limit)
         + POLICY_META_TABLE_NAME
         + " WHERE policy_id IN (SELECT policy_id FROM "
         + POLICY_META_TABLE_NAME
-        + " WHERE deleted_at = 0 AND legacy_timeline < #{legacyTimeline} LIMIT 
#{limit})";

Review Comment:
   You need to modify the policy version, too



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