cloud-fan commented on PR #37631:
URL: https://github.com/apache/spark/pull/37631#issuecomment-1229682384

   ah, now I understand where the trailing empty string comes from, thanks! I 
agree to go with the "split and drop trailing empty string" behavior, but can 
we do it regardless of the limit parameter? I'd expect something like
   ```
   if (split == "") {
     str.toSeq.take(limit)
   }
   ```


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

To unsubscribe, e-mail: [email protected]

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