GitHub user davies opened a pull request:

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

    [SPARK-9459] [SQL] use generated FromUnsafeProjection to do deep copy for 
UTF8String and struct

    When accessing a column in UnsafeRow, it's good to avoid the copy, then we 
should do deep copy when turn the UnsafeRow into generic Row, this PR brings 
generated FromUnsafeProjection to do that.
    
    This PR also fix the expressions that cache the UTF8String, which should 
also copy it. 

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

    $ git pull https://github.com/davies/spark avoid_copy

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

    https://github.com/apache/spark/pull/7840.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 #7840
    
----
commit 9aecb88c606e5412fb5266d63c1ff108ba777433
Author: Davies Liu <[email protected]>
Date:   2015-07-31T20:35:28Z

    use FromUnsafeProjection to do deep copy for UTF8String and struct

----


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