JingsongLi commented on code in PR #2506:
URL: https://github.com/apache/incubator-paimon/pull/2506#discussion_r1425312239
##########
paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/SerializableHiveConf.java:
##########
@@ -34,38 +33,32 @@ public class SerializableHiveConf implements Serializable {
private transient HiveConf conf;
+ private final byte[] serializedConf;
+
public SerializableHiveConf(HiveConf conf) {
this.conf = conf;
+ try {
+ ByteArrayOutputStream bos = new ByteArrayOutputStream();
+ ObjectOutputStream oos = new ObjectOutputStream(new
ByteArrayOutputStream());
+ conf.write(oos);
+ oos.flush();
+ serializedConf = bos.toByteArray();
Review Comment:
Maybe the serialization can be lazied too
--
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]