Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26818

Make MLEvents JSON ser/de safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • ML
    • None

    Description

      Looks ML events are not JSON serializable. We can make it serialisable like:

      @DeveloperApi
      case class SparkListenerSQLExecutionEnd(executionId: Long, time: Long)
        extends SparkListenerEvent {
      
        // The name of the execution, e.g. `df.collect` will trigger a SQL execution with name "collect".
        @JsonIgnore private[sql] var executionName: Option[String] = None
      
        // The following 3 fields are only accessed when `executionName` is defined.
      
        // The duration of the SQL execution, in nanoseconds.
        @JsonIgnore private[sql] var duration: Long = 0L
      
        // The `QueryExecution` instance that represents the SQL execution
        @JsonIgnore private[sql] var qe: QueryExecution = null
      
        // The exception object that caused this execution to fail. None if the execution doesn't fail.
        @JsonIgnore private[sql] var executionFailure: Option[Exception] = None
      }
      

      .

      Attachments

        Issue Links

          Activity

            People

              gurwls223 Hyukjin Kwon
              gurwls223 Hyukjin Kwon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: