LuciferYang commented on code in PR #41540:
URL: https://github.com/apache/spark/pull/41540#discussion_r1227492040
##########
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryListener.scala:
##########
@@ -123,7 +128,17 @@ object StreamingQueryListener {
val id: UUID,
val runId: UUID,
val name: String,
- val timestamp: String) extends Event
+ val timestamp: String) extends Event {
+
+ def json: String = compact(render(jsonValue))
+
+ private def jsonValue: JValue = {
Review Comment:
@HeartSaVioR Actually, a few days ago, I wrote a draft to use jackson api
instead of json4s for `StreamingQueryProgress`:
https://github.com/apache/spark/pull/41562
However, maybe this is more suitable for change in Spark 4.0.
--
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]