Github user sun-rui commented on a diff in the pull request: https://github.com/apache/spark/pull/12493#discussion_r60522215 --- Diff: R/pkg/R/generics.R --- @@ -439,6 +439,10 @@ setGeneric("covar_samp", function(col1, col2) {standardGeneric("covar_samp") }) #' @export setGeneric("covar_pop", function(col1, col2) {standardGeneric("covar_pop") }) +#' @rdname dapply +#' @export +setGeneric("dapply", function(x, func, schema = NULL) { standardGeneric("dapply") }) --- End diff -- @davies, 1) Yes, we should optimize multiple successive calls to dapply(). It is a following-up task which has already a JIRA for it: https://issues.apache.org/jira/browse/SPARK-12923. 2) We can state that DataFrames from non-schema dapply() contain serialized R data, but the format is private, user should have no dependency on it. We can add rules in Catalyst that only dapply() and collect() are allowed on such DataFrames. Other operations including saving to files are not allowed. Anyway, I am OK if we do not support non-schema dapply() for now. I am waiting for your vote:) @shivaram, @davies, @rxin
--- 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