HyukjinKwon commented on a change in pull request #23760: [SPARK-26762][SQL][R]
Arrow optimization for conversion from Spark DataFrame to R DataFrame
URL: https://github.com/apache/spark/pull/23760#discussion_r258309338
##########
File path: R/pkg/tests/fulltests/test_sparkSQL.R
##########
@@ -332,7 +332,24 @@ test_that("createDataFrame Arrow optimization", {
})
})
-test_that("createDataFrame Arrow optimization - type specification", {
+test_that("createDataFrame/collect Arrow optimization - many partitions
(partition order test)", {
+ skip_if_not_installed("arrow")
+
+ conf <- callJMethod(sparkSession, "conf")
+ arrowEnabled <- sparkR.conf("spark.sql.execution.arrow.enabled")[[1]]
+
+ callJMethod(conf, "set", "spark.sql.execution.arrow.enabled", "true")
+ tryCatch({
+ expect_equal(collect(createDataFrame(mtcars, numPartitions = 32)),
Review comment:
They are evenly same 1 row per partitions so it wouldn't be likely in an
order anyway .. I also manually verifies that it comes out of order pretty
consistently.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]