You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/10/13 06:22:04 UTC
[GitHub] [iceberg] Kontinuation commented on issue #5974: Spark: Query fails with `java.lang.UnsupportedOperationException` when using Kryo serialization
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org