Github user felixcheung commented on a diff in the pull request: https://github.com/apache/spark/pull/16330#discussion_r105546348 --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R --- @@ -2897,6 +2898,27 @@ test_that("Collect on DataFrame when NAs exists at the top of a timestamp column expect_equal(class(ldf3$col3), c("POSIXct", "POSIXt")) }) +compare_list <- function(list1, list2) { + # get testthat to show the diff by first making the 2 lists equal in length + expect_equal(length(list1), length(list2)) + l <- max(length(list1), length(list2)) --- End diff -- here's what it looks like ``` 1. Failure: No extra files are created in SPARK_HOME by starting session and making calls (@test_sparkSQL.R#2917) length(list1) not equal to length(list2). 1/1 mismatches [1] 22 - 23 == -1 2. Failure: No extra files are created in SPARK_HOME by starting session and making calls (@test_sparkSQL.R#2917) sort(list1, na.last = TRUE) not equal to sort(list2, na.last = TRUE). 3/23 mismatches x[21]: "unit-tests.out" y[21]: "spark-warehouse" x[22]: "WINDOWS.md" y[22]: "unit-tests.out" x[23]: NA y[23]: "WINDOWS.md" ```
--- 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