Github user KevinZwx commented on the issue:

    https://github.com/apache/spark/pull/16970
  
    I'm a little confused with the behavior of dropDuplicates with watermark.  
According to my understanding of the guide documentation, if I have the 
following code, I expect to deduplicate still with uuid but use timestamp 
column and watermark to expire state. 
    
    `.withWatermark("timestamp", "1 day")
    .dropDuplicates("uuid", "timestamp")`
    
    But in fact I found that the program probably uses uuid and timestamp as a 
combined key to deduplicate elements because the result count is much larger 
than using dropDuplicates("uuid") and more close to the result with no 
duplication.  Is it the expected behavior?If so how to achieve what I want?


---
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