Github user shivaram commented on a diff in the pull request: https://github.com/apache/spark/pull/12493#discussion_r60315638 --- Diff: R/pkg/inst/worker/worker.R --- @@ -100,7 +104,20 @@ if (isEmpty != 0) { # Timing reading input data for execution inputElap <- elapsedSecs() - output <- computeFunc(partition, data) + if (isDataFrame) { + if (deserializer == "row") { + # Transform the list of rows into a data.frame + data <- do.call(rbind.data.frame, c(data, stringsAsFactors = FALSE)) + } --- End diff -- If deserializer is not `row` can we add a check to see if `data` is a valid `data.frame` ? (I'm guess the UDFs assume that is the input type)
--- 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