Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/5147#issuecomment-85392017
  
    > Next thing is overall deprecation of withPartition commands, I noticed 
this trend and can't say it makes me happy.
    
    Actually, I realize now that I was a little inaccurate earlier: the 
`mapPartitionsWithContext` and `mapPartitionsWithSplit` interfaces were being 
deprecated, with the former being replaced by TaskContext.get, and the latter 
being replaced by `mapPartitionsWithIndex` (but unnecessary if you have 
TaskContext).  Hence my preference towards allowing TaskContext to be used in 
more place rather than adding new methods that thread through a single piece of 
information that it provides. 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to