GitHub user tarekauel opened a pull request:

    https://github.com/apache/spark/pull/6804

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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tarekauel/spark SPARK-8301

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/6804.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 #6804
    
----
commit b17909e932bdd6fe88efef1c1e3f6d5216c5400c
Author: Tarek Auel <[email protected]>
Date:   2015-06-13T22:33:41Z

    [SPARK-8301] removed unnecessary copying of UTF8String. Added a private 
function startsWith(prefix, offset) to implement the check for startsWith, 
endsWith and contains.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to