rdblue commented on a change in pull request #3752:
URL: https://github.com/apache/iceberg/pull/3752#discussion_r771543771



##########
File path: core/src/main/java/org/apache/iceberg/SerializableTable.java
##########
@@ -386,4 +393,21 @@ public Configuration get() {
       return conf;
     }
   }
+
+  private static class SkipSerializableConfiguration implements Serializable {
+
+    private transient volatile Configuration conf;
+
+    SkipSerializableConfiguration(Configuration conf) {
+      this.conf = conf;
+    }
+
+    public Configuration get() {
+      if (conf == null) {
+        throw new IllegalStateException("Configuration was not serialized on 
purpose but was not set manually either");

Review comment:
       What about logging a warning and then calling `new Configuration()`?




-- 
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]

Reply via email to