diff options
author | Tarek Auel <tarek.auel@googlemail.com> | 2015-06-20 20:03:59 -0700 |
---|---|---|
committer | Davies Liu <davies@databricks.com> | 2015-06-20 20:03:59 -0700 |
commit | 41ab2853f41de2abc415358b69671f37a0653533 (patch) | |
tree | 37210295ec1c2cd3cb6f81015d09aa0a18d1f949 /make-distribution.sh | |
parent | 004f57374b98c4df32d9f1e19221f68e92639a49 (diff) | |
download | spark-41ab2853f41de2abc415358b69671f37a0653533.tar.gz spark-41ab2853f41de2abc415358b69671f37a0653533.tar.bz2 spark-41ab2853f41de2abc415358b69671f37a0653533.zip |
[SPARK-8301] [SQL] Improve UTF8String substring/startsWith/endsWith/contains performance
Jira: https://issues.apache.org/jira/browse/SPARK-8301
Added the private method startsWith(prefix, offset) to implement startsWith, endsWith and contains without copying the array
I hope that the component SQL is still correct. I copied it from the Jira ticket.
Author: Tarek Auel <tarek.auel@googlemail.com>
Author: Tarek Auel <tarek.auel@gmail.com>
Closes #6804 from tarekauel/SPARK-8301 and squashes the following commits:
f5d6b9a [Tarek Auel] fixed parentheses and annotation
6d7b068 [Tarek Auel] [SPARK-8301] removed null checks
9ca0473 [Tarek Auel] [SPARK-8301] removed null checks
1c327eb [Tarek Auel] [SPARK-8301] removed new
9f17cc8 [Tarek Auel] [SPARK-8301] fixed conversion byte to string in codegen
3a0040f [Tarek Auel] [SPARK-8301] changed call of UTF8String.set to UTF8String.from
e4530d2 [Tarek Auel] [SPARK-8301] changed call of UTF8String.set to UTF8String.from
a5f853a [Tarek Auel] [SPARK-8301] changed visibility of set to protected. Changed annotation of bytes from Nullable to Nonnull
d2fb05f [Tarek Auel] [SPARK-8301] added additional null checks
79cb55b [Tarek Auel] [SPARK-8301] null check. Added test cases for null check.
b17909e [Tarek Auel] [SPARK-8301] removed unnecessary copying of UTF8String. Added a private function startsWith(prefix, offset) to implement the check for startsWith, endsWith and contains.
Diffstat (limited to 'make-distribution.sh')
0 files changed, 0 insertions, 0 deletions