GitHub user Sherry302 opened a pull request:

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

    [SPARK-15707][SQL] Make Code Neat - Use map instead of if check.

    ## What changes were proposed in this pull request?
    In forType function of object RandomDataGenerator, the code following:
    if (maybeSqlTypeGenerator.isDefined){
      ....
      Some(generator)
    } else{
     None
    }
    will be changed. Instead, maybeSqlTypeGenerator.map will be used.
    
    ## How was this patch tested?
    All of the current unit tests passed.


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

    $ git pull https://github.com/Sherry302/spark master

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

    https://github.com/apache/spark/pull/13448.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 #13448
    
----
commit 010110ebe18b2de291f03c03ebaa9183ed7b3987
Author: Weiqing Yang <yangweiqing...@gmail.com>
Date:   2016-06-01T18:12:59Z

    [SPARK-15707][SQL] Make Code Neat - Use map instead of if check.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to