Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/14260
  
    Yeah that's the 'problem' -- consider `wc -l` which returns 0 for no input 
at all. That explains the behavior now, where an empty partition results in a 
partition of one element: "0". That seems a bit odd. It's not _that_ odd 
because `pipe` is actually quite partition-oriented. I don't feel strongly 
about changing the behavior of an empty partition though, if anyone thinks it 
actual has the right semantics. But in any event the current behavior could be 
documented better.


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