GitHub user HyukjinKwon opened a pull request:

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

    [SPARK-21536][R] Remove the workaroud to allow dots in field names in R's 
createDataFame

    ## What changes were proposed in this pull request?
    
    This PR removes the workaround for dots in column names in SparkR's 
`createDataFrame`.
    
    **Before:**
    
    ```r
    > createDataFrame(list(list(1)), "a.a")
    SparkDataFrame[a_a:double]
    ...
    In FUN(X[[i]], ...) : Use a_a instead of a.a  as column name
    ```
    
    ```r
    > createDataFrame(list(list(a.a = 1)))
    SparkDataFrame[a_a:double]
    ...
    In FUN(X[[i]], ...) : Use a_a instead of a.a  as column name
    ```
    
    **After:**
    
    ```r
    > createDataFrame(list(list(1)), "a.a")
    SparkDataFrame[a.a:double]
    ```
    
    ```r
    > createDataFrame(list(list(a.a = 1)))
    SparkDataFrame[a.a:double]
    ```
    
    ## How was this patch tested?
    
    Unit tests in `test_sparkSQL.R`.


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

    $ git pull https://github.com/HyukjinKwon/spark SPARK-21536

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

    https://github.com/apache/spark/pull/18737.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 #18737
    
----
commit ef9d200a920385816183aa9ff8b30ce4ef7bc32c
Author: hyukjinkwon <gurwls...@gmail.com>
Date:   2017-07-26T06:23:51Z

    Remove the workaroud to allow dots in field names in R's createDataFame

----


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