TheR1sing3un commented on code in PR #8319:
URL: https://github.com/apache/paimon/pull/8319#discussion_r3457534556


##########
paimon-python/pypaimon/tag/tag_manager.py:
##########
@@ -173,7 +179,16 @@ def _create_or_replace_tag(
         if not self.file_io.exists(tag_dir):
             self.file_io.mkdirs(tag_dir)
 
-        content = JSON.to_json(snapshot)
+        # Mirror Java TagManager.createOrReplaceTag: when no retention is set,
+        # write the plain Snapshot JSON (no tag-specific fields) so the file
+        # stays readable by older readers. Only write the richer Tag JSON when 
a
+        # retention (and thus a create-time) is present.
+        if time_retained is not None:
+            retained = timedelta(milliseconds=parse_duration(time_retained))

Review Comment:
   fixed.



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