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

    https://github.com/apache/spark/pull/17192#discussion_r105337154
  
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -1339,6 +1339,11 @@ test_that("column functions", {
       expect_equal(collect(select(df, bround(df$x, 0)))[[1]][2], 4)
     
       # Test to_json(), from_json()
    +  arr <- list(listToStruct(list("name" = "bob")))
    +  df <- as.DataFrame(list(listToStruct(list("people" = arr))))
    +  j <- collect(select(df, alias(to_json(df$people), "json")))
    +  expect_equal(j[order(j$json), ][1], "[{\"name\":\"bob\"}]")
    +
    --- End diff --
    
    Let me propose this with it for now and try to find another way until it is 
merged.


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