Github user sun-rui commented on a diff in the pull request:
https://github.com/apache/spark/pull/9099#discussion_r42339491
--- Diff: R/pkg/R/SQLContext.R ---
@@ -90,19 +90,18 @@ createDataFrame <- function(sqlContext, data, schema =
NULL, samplingRatio = 1.0
if (is.null(schema)) {
schema <- names(data)
}
- n <- nrow(data)
- m <- ncol(data)
- # get rid of factor type
- dropFactor <- function(x) {
+ # get rid of factor type and adjust for lists
--- End diff --
Recommend the comment:
# Because parallelize() parallelizes a data.frame by columns, so transpose
the data.frame here before passing it to parallelize() so that each row in the
data.frame corresponds to a row in the result DataFrame.
---
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]