Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/6620#discussion_r31674558
--- Diff: R/pkg/R/SQLContext.R ---
@@ -462,14 +462,19 @@ read.df <- function(sqlContext, path = NULL, source =
NULL, ...) {
source <- callJMethod(sqlContext, "getConf",
"spark.sql.sources.default",
"org.apache.spark.sql.parquet")
}
- sdf <- callJMethod(sqlContext, "load", source, options)
--- End diff --
Its actually harder to use the chaining API from SparkR -- We'll need to
get a jobj for sqlContext.read and then set schema on it and then call load on
it. Not sure its worth to make 3 RPCs from R to JVM ?
---
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]