Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16512#discussion_r95518300
  
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -196,6 +196,12 @@ test_that("create DataFrame from RDD", {
       expect_equal(dtypes(df), list(c("name", "string"), c("age", "int"), 
c("height", "float")))
       expect_equal(as.list(collect(where(df, df$name == "John"))),
                    list(name = "John", age = 19L, height = 176.5))
    +  expect_equal(getNumPartitions(toRDD(df)), 1)
    --- End diff --
    
    How about to add in doc:
    "the actual number partition can be increased as multiples of 
spark.r.maxAllocationLimit, or limited by the number of columns in data.frame."


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