From 47f54ce649f512e498f83a80932f68b8de50aa08 Mon Sep 17 00:00:00 2001 From: Eunbin Son Date: Sat, 11 Jul 2026 10:01:16 +0900 Subject: [PATCH] [fs] Declare serialVersionUID in COSNLoader for Serializable consistency FileIOLoader is @Public and extends Serializable. Among the loaders using the PluginFileIO pattern (OBS/OSS/S3/GS/Azure/COSN), COSNLoader is the only one that declares serialVersionUID on its inner PluginFileIO but not on the outer loader class. Add it to align with the other five and pin the serialization UID instead of relying on the compiler-computed one. Generated-by: Claude Code --- .../src/main/java/org/apache/paimon/cosn/COSNLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paimon-filesystems/paimon-cosn/src/main/java/org/apache/paimon/cosn/COSNLoader.java b/paimon-filesystems/paimon-cosn/src/main/java/org/apache/paimon/cosn/COSNLoader.java index 35b6c1ff28d1..887ea479be4e 100644 --- a/paimon-filesystems/paimon-cosn/src/main/java/org/apache/paimon/cosn/COSNLoader.java +++ b/paimon-filesystems/paimon-cosn/src/main/java/org/apache/paimon/cosn/COSNLoader.java @@ -30,6 +30,9 @@ /** A {@link PluginLoader} to load cosn. */ public class COSNLoader implements FileIOLoader { + + private static final long serialVersionUID = 1L; + private static final String COSN_JAR = "paimon-plugin-cosn"; private static final String COSN_CLASS = "org.apache.paimon.cosn.COSNFileIO"; // Singleton lazy initialization