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

    https://github.com/apache/spark/pull/21255#discussion_r187380148
  
    --- Diff: R/pkg/tests/fulltests/test_sparkSQL.R ---
    @@ -1502,12 +1502,25 @@ test_that("column functions", {
       result <- collect(select(df, sort_array(df[[1]])))[[1]]
       expect_equal(result, list(list(1L, 2L, 3L), list(4L, 5L, 6L)))
     
    -  # Test flattern
    +  result <- collect(select(df, reverse(df[[1]])))[[1]]
    +  expect_equal(result, list(list(3L, 2L, 1L), list(4L, 5L, 6L)))
    +
    +  df2 <- createDataFrame(list(list("abc")))
    +  result <- collect(select(df2, reverse(df2[[1]])))[[1]]
    +  expect_equal(result, "cba")
    +
    +  # Test flattern()
    --- End diff --
    
    `flattern` -> `flatten`. 


---

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

Reply via email to