zzcclp commented on pull request #31404:
URL: https://github.com/apache/spark/pull/31404#issuecomment-776380357


   > How about the case where `dropDuplicates` has different `keys` in each 
operations like this?
   > 
   > ```
   > val df1 = Seq((1, 2, 3)).toDF("a", "b", "c")
   > val df2 = Seq((1, 2, 5)).toDF("a", "b", "c")
   > val df3 = Seq((2, 4, 3)).toDF("a", "b", "c")
   > val df4 = Seq((1, 4, 5)).toDF("a", "b", "c")
   > 
df1.union(df2).dropDuplicates(Seq("a")).union(df3).dropDuplicates("c").union(df4).dropDuplicates("b")
   > ```
   
   @maropu I have added this case you mentioned in test cases, please review.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to