GitHub user xubo245 opened a pull request:

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

    [SPARK-22857] Optimize code by inspecting code

    Optimize code by inspecting code, including:
    remove some unused import
    change invoking array size method to length method
    use head method
    
    ## What changes were proposed in this pull request?
    
    (Please fill in changes proposed in this fix)
    
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    Please review http://spark.apache.org/contributing.html before opening a 
pull request.


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

    $ git pull https://github.com/xubo245/spark spark2.2

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

    https://github.com/apache/spark/pull/20044.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 #20044
    
----
commit aab41182a333b6f6b3e58624f896dfa668d75842
Author: xubo245 <601450868@...>
Date:   2017-11-27T12:26:58Z

    [SPARK-22857] Optimize code by inspecting code
    
    Optimize code by inspecting code, including:
    remove some unused import
    change invoking array size method to length method
    use head method

----


---

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

Reply via email to