Skip to content

Commit

Permalink
Minor review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 4, 2024
1 parent ab539bf commit bbb0ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/org/apache/spark/util/JsonProtocol.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ private[spark] class JsonProtocolOptions(conf: SparkConf) {
private[spark] object JsonProtocol extends JsonUtils {
// TODO: Remove this file and put JSON serialization into each individual class.

private[util]
val defaultOptions: JsonProtocolOptions = new JsonProtocolOptions(new SparkConf(false))

/** ------------------------------------------------- *
* JSON serialization methods for SparkListenerEvents |
* -------------------------------------------------- */

// Only for use in tests. Production code should use the two-argument overload defined below.
def sparkEventToJsonString(event: SparkListenerEvent): String = {
sparkEventToJsonString(event, defaultOptions)
}
Expand Down

0 comments on commit bbb0ade

Please sign in to comment.