GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/19355
[SPARK-22130][Core] UTF8String.trim() scans " " twice
## What changes were proposed in this pull request?
This PR allows us to scan a string including only white space (e.g. `"
"`) once while the current implementation scans twice (right to left, and then
left to right).
## How was this patch tested?
Existing test suites
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-22130
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19355.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19355
----
commit 243f681af922fe414db5194f1a1765328247d9ce
Author: Kazuaki Ishizaki <[email protected]>
Date: 2017-09-26T16:47:47Z
initial commit
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]