GitHub user mgaido91 opened a pull request:

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

    [SPARK-22694][SQL] Like and RLike should not use global variables

    ## What changes were proposed in this pull request?
    
    Like and RLike are using a global variable which is not needed. This can 
generate some unneeded entries in the constant pool.
    
    The PR removes the unnecessary mutable states and makes them local 
variables.
    
    ## How was this patch tested?
    
    added UTs


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

    $ git pull https://github.com/mgaido91/spark SPARK-22694

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

    https://github.com/apache/spark/pull/19897.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 #19897
    
----
commit 3220df1a2102cfe8ba95bcbdd418c30350ab1e3c
Author: Marco Gaido <[email protected]>
Date:   2017-12-05T12:51:39Z

    [SPARK-22694][SQL] Like and RLike should not use global variables

----


---

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

Reply via email to