Kontinuation commented on issue #5974:
URL: https://github.com/apache/iceberg/issues/5974#issuecomment-1277087495
The fix is fairly easy:
```diff
diff --git a/core/src/main/java/org/apache/iceberg/SerializableTable.java
b/core/src/main/java/org/apache/iceberg/SerializableTable.javaindex
8f8f27a76..a1e2ef7eb 100644
--- a/core/src/main/java/org/apache/iceberg/SerializableTable.java+++
b/core/src/main/java/org/apache/iceberg/SerializableTable.java@@ -82,7 +82,7 @@
public class SerializableTable implements Table, Serializable {
this.io = fileIO(table); this.encryption = table.encryption();
this.locationProvider = table.locationProvider();
- this.refs = table.refs();
+ this.refs = SerializableMap.copyOf(table.refs());
}
/**
```
I wonder if we could add a parameterized test case with kryo serializer
enabled to the smoke test, so that we can catch similar problems in CI.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]