Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13342#discussion_r66551851
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/ForeachWriter.scala 
---
    @@ -68,9 +71,9 @@ import org.apache.spark.sql.streaming.ContinuousQuery
     abstract class ForeachWriter[T] extends Serializable {
     
       /**
    -   * Called when starting to process one partition of new data in the 
executor side. `version` is
    -   * for data deduplication. When recovering from a failure, some data may 
be processed twice. But
    -   * it's guarantee that they will be opened with the same "version".
    +   * Called when starting to process one partition of new data in the 
executor. The `version` is
    +   * for data deduplication when there are failures. When recovering from 
a failure, some data may
    +   * be generated multiple times but they will always have the same 
version.
        *
        * If this method finds this is a partition from a duplicated data set, 
it can return `false` to
    --- End diff --
    
    nit: finds using the `partitionId` and `version` that this partition has 
already been processed, it can return ...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to