-
- Downloads
[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 Author: Kazuaki Ishizaki <ishizaki@jp.ibm.com> Closes #19355 from kiszk/SPARK-22130.
Showing
- common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java 5 additions, 6 deletions...c/main/java/org/apache/spark/unsafe/types/UTF8String.java
- common/unsafe/src/test/java/org/apache/spark/unsafe/types/UTF8StringSuite.java 3 additions, 0 deletions...t/java/org/apache/spark/unsafe/types/UTF8StringSuite.java
Loading
Please register or sign in to comment