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

    https://github.com/apache/spark/pull/9613#discussion_r44740561
  
    --- Diff: R/pkg/inst/tests/test_sparkSQL.R ---
    @@ -1525,6 +1525,22 @@ test_that("Method coltypes() to get R's data types 
of a DataFrame", {
       expect_equal(coltypes(x), "map<string,string>")
     })
     
    +test_that("Method str()", {
    +  # Structure of Iiris
    +  iris2 <- iris
    +  iris2$col <- TRUE
    +  irisDF2 <- createDataFrame(sqlContext, iris2)
    +  out <- capture.output(str(irisDF2))
    +  expect_equal(length(out), 7)
    +
    +  # A random dataset with many columns
    +  x <- runif(200, 1, 10)
    +  df <- data.frame(t(as.matrix(data.frame(x,x,x,x,x,x,x,x,x))))
    +  DF <- createDataFrame(sqlContext, df)
    +  out <- capture.output(str(DF))
    +  expect_equal(length(out), 103)
    --- End diff --
    
    Thanks for all the suggestions. I will address them soon :-)


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