GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/13774
[SPARK-16059][R] Add `monotonically_increasing_id` function in SparkR ## What changes were proposed in this pull request? This PR adds `monotonically_increasing_id` column function in SparkR for API parity. After this PR, SparkR supports the followings. ```r > df <- read.json("examples/src/main/resources/people.json") > collect(select(df, monotonically_increasing_id(), df$name, df$age)) monotonically_increasing_id() name age 1 0 Michael NA 2 1 Andy 30 3 2 Justin 19 ``` ## How was this patch tested? Pass the Jenkins tests (with added testcase). You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-16059 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13774.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 #13774 ---- commit cb124e8b66d25d53f0b08e6f7ad1b72af9e379c4 Author: Dongjoon Hyun <dongj...@apache.org> Date: 2016-06-19T19:27:44Z [SPARK-16059][R] Add `monotonically_increasing_id` function in SparkR ---- --- 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