GitHub user rednaxelafx opened a pull request:

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

    [SPARK-23947][SQL] Add hashUTF8String convenience method to hasher classes

    ## What changes were proposed in this pull request?
    
    Add `hashUTF8String()` to the hasher classes to allow Spark SQL codegen to 
generate cleaner code for hashing `UTF8String`s. No change in behavior 
otherwise.
    
    Although with the introduction of SPARK-10399, the code size for hashing 
`UTF8String` is already smaller, it's still good to extract a separate function 
in the hasher classes so that the generated code can stay clean.
    
    ## How was this patch tested?
    
    Existing tests.

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

    $ git pull https://github.com/rednaxelafx/apache-spark hashutf8

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

    https://github.com/apache/spark/pull/21016.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 #21016
    
----
commit ead91a453fb6a3f92255d14d37c1d4a6beac22fd
Author: Kris Mok <kris.mok@...>
Date:   2018-04-09T22:30:03Z

    SPARK-23947 - Add hashUTF8String convenience method to hasher classes

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to