2121import org .apache .paimon .CoreOptions ;
2222import org .apache .paimon .Snapshot ;
2323import org .apache .paimon .annotation .VisibleForTesting ;
24- import org .apache .paimon .operation .TagDeletion ;
2524import org .apache .paimon .table .sink .TagCallback ;
2625import org .apache .paimon .tag .TagTimeExtractor .ProcessTimeExtractor ;
2726import org .apache .paimon .tag .TagTimeExtractor .WatermarkExtractor ;
@@ -53,7 +52,6 @@ public class TagAutoCreation {
5352
5453 private final SnapshotManager snapshotManager ;
5554 private final TagManager tagManager ;
56- private final TagDeletion tagDeletion ;
5755 private final TagTimeExtractor timeExtractor ;
5856 private final TagPeriodHandler periodHandler ;
5957 private final Duration delay ;
@@ -70,7 +68,6 @@ public class TagAutoCreation {
7068 private TagAutoCreation (
7169 SnapshotManager snapshotManager ,
7270 TagManager tagManager ,
73- TagDeletion tagDeletion ,
7471 TagTimeExtractor timeExtractor ,
7572 TagPeriodHandler periodHandler ,
7673 Duration delay ,
@@ -82,7 +79,6 @@ private TagAutoCreation(
8279 ZoneId sinkProcessTimeZone ) {
8380 this .snapshotManager = snapshotManager ;
8481 this .tagManager = tagManager ;
85- this .tagDeletion = tagDeletion ;
8682 this .timeExtractor = timeExtractor ;
8783 this .periodHandler = periodHandler ;
8884 this .delay = delay ;
@@ -196,7 +192,7 @@ private void tryToCreateTags(Snapshot snapshot) {
196192 "Delete tag {}, because the number of auto-created tags reached numRetainedMax of {}." ,
197193 toDeleteTag ,
198194 numRetainedMax );
199- tagManager .deleteTag (toDeleteTag , tagDeletion , snapshotManager , callbacks );
195+ tagManager .deleteTag (toDeleteTag , callbacks );
200196 i ++;
201197 if (i == toDelete ) {
202198 break ;
@@ -225,7 +221,6 @@ public static TagAutoCreation create(
225221 CoreOptions options ,
226222 SnapshotManager snapshotManager ,
227223 TagManager tagManager ,
228- TagDeletion tagDeletion ,
229224 List <TagCallback > callbacks ) {
230225 TagTimeExtractor extractor = TagTimeExtractor .createForAutoTag (options );
231226 if (extractor == null ) {
@@ -234,7 +229,6 @@ public static TagAutoCreation create(
234229 return new TagAutoCreation (
235230 snapshotManager ,
236231 tagManager ,
237- tagDeletion ,
238232 extractor ,
239233 TagPeriodHandler .create (options ),
240234 options .tagCreationDelay (),
0 commit comments