This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new b862e472c8 [core] Return empty instead of throwing exception when
getting system table's latestSnapshotId (#5113)
b862e472c8 is described below
commit b862e472c8d17883972391ef2b120a02478729e2
Author: Jiao Mingye <[email protected]>
AuthorDate: Wed Feb 19 19:58:42 2025 +0800
[core] Return empty instead of throwing exception when getting system
table's latestSnapshotId (#5113)
---
paimon-core/src/main/java/org/apache/paimon/table/ReadonlyTable.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/table/ReadonlyTable.java
b/paimon-core/src/main/java/org/apache/paimon/table/ReadonlyTable.java
index fe5ebbfcd1..e0e1a8e2b6 100644
--- a/paimon-core/src/main/java/org/apache/paimon/table/ReadonlyTable.java
+++ b/paimon-core/src/main/java/org/apache/paimon/table/ReadonlyTable.java
@@ -111,10 +111,7 @@ public interface ReadonlyTable extends InnerTable {
@Override
default OptionalLong latestSnapshotId() {
- throw new UnsupportedOperationException(
- String.format(
- "Readonly Table %s does not support currentSnapshot.",
- this.getClass().getSimpleName()));
+ return OptionalLong.empty();
}
@Override