LuciferYang commented on code in PR #39139:
URL: https://github.com/apache/spark/pull/39139#discussion_r1053287526
##########
core/src/main/scala/org/apache/spark/status/protobuf/KVStoreProtobufSerializer.scala:
##########
@@ -47,6 +51,23 @@ private[spark] class KVStoreProtobufSerializer extends
KVStoreScalaSerializer {
ApplicationInfoWrapperSerializer.deserialize(data).asInstanceOf[T]
case _ if classOf[RDDStorageInfoWrapper].isAssignableFrom(klass) =>
RDDStorageInfoWrapperSerializer.deserialize(data).asInstanceOf[T]
+ case other if
KVStoreProtobufSerializer.isSQLExecutionUIData(other.getName) =>
+
KVStoreProtobufSerializer.uiDataSerializer.deserialize(data).asInstanceOf[T]
case other => super.deserialize(data, klass)
}
}
+
+object KVStoreProtobufSerializer {
+ private lazy val uiDataSerializer: ExtendedSerializer = {
Review Comment:
It seems that the initialization way is not elegant. Let me see if there is
a better way, maybe `SPI`?
--
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]