Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21721#discussion_r208109148
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/ProgressReporter.scala
 ---
    @@ -196,6 +237,18 @@ trait ProgressReporter extends Logging {
         currentStatus = currentStatus.copy(isTriggerActive = false)
       }
     
    +  /** Extract writer from the executed query plan. */
    +  private def dataSourceWriter: Option[DataSourceWriter] = {
    +    if (lastExecution == null) return None
    +    lastExecution.executedPlan.collect {
    +      case p if p.isInstanceOf[WriteToDataSourceV2Exec] =>
    --- End diff --
    
    i see, thanks!


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to