JingsongLi commented on code in PR #1271:
URL: https://github.com/apache/incubator-paimon/pull/1271#discussion_r1213889828
##########
paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java:
##########
@@ -243,4 +246,19 @@ public void rollbackTo(long snapshotId) {
throw new UncheckedIOException(e);
}
}
+
+ @Override
+ public void createTag(String tagName, long fromSnapshotId) {
+ checkArgument(!StringUtils.isNumeric(tagName), "Tag name cannot be
pure numeric string.");
Review Comment:
inline `isNumeric` here.
And add test for empty "" tag string.
Move this check to `TagManager`.
##########
paimon-core/src/main/java/org/apache/paimon/table/Table.java:
##########
@@ -67,6 +67,9 @@ public interface Table extends Serializable {
@Experimental
void rollbackTo(long snapshotId);
+ /** Create a tag from given snapshot. */
Review Comment:
add `@Experimental`
--
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]