danzhewuju opened a new pull request, #11294: URL: https://github.com/apache/paimon/pull/11294
### Purpose Fixes #11293. Scheduled jobs commonly set `tag.default-time-retained` on the table and omit `time_retained` in `CALL ...create_tag`. The procedure forwarded a null duration, so the tag was written without a retention period. Regular TTL cleanup skips those tags, allowing historical snapshots and their data files to accumulate. Use the existing `Table.createTag` overloads that apply the table default when `time_retained` is omitted. This covers both the latest snapshot and a specified snapshot in the shared Flink procedure, the Flink 1.18 procedure, and the shared Spark procedure. An explicit duration still overrides the table default. ### Tests - Added a Flink SQL regression that verifies the persisted default retention for both snapshot forms and an explicit one-hour override. The regression fails on the baseline and passes with the fix. - All nine selected Flink tag tests pass. -- 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]
