Github user NarineK commented on a diff in the pull request:
https://github.com/apache/spark/pull/12989#discussion_r62592006
--- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
@@ -2070,6 +2072,16 @@ test_that("dapply() on a DataFrame", {
rownames(expected) <- NULL
expect_identical(expected, result)
+ result <- dapplyCollect(
+ df,
+ function(x) {
+ y <- x[x$a > 1, ]
+ y <- cbind(y, y$a + 1L)
--- End diff --
Maybe, we can add test cases where the function returns data.frame, list
and other data structures. What do you think ?
In general, it seems that we only support a subset of R's data types and
there might be issues when we train a model on a worker and try to pass that
model to a predict to make predictions using a separate dapply method.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]