HyukjinKwon commented on a change in pull request #22954: [SPARK-25981][R]
Enables Arrow optimization from R DataFrame to Spark DataFrame
URL: https://github.com/apache/spark/pull/22954#discussion_r250618871
##########
File path: R/pkg/R/SQLContext.R
##########
@@ -147,6 +147,73 @@ getDefaultSqlSource <- function() {
l[["spark.sql.sources.default"]]
}
+writeToFileInArrow <- function(fileName, rdf, numPartitions) {
+ requireNamespace1 <- requireNamespace
+
+ # R API in Arrow is not yet released in CRAN. CRAN requires to add the
+ # package in requireNamespace at DESCRIPTION. Later, CRAN checks if the
package is available
+ # or not. Therefore, it works around by avoiding direct requireNamespace.
+ # Currently, as of Arrow 0.12.0, it can be installed by install_github. See
ARROW-3204.
+ if (requireNamespace1("arrow", quietly = TRUE)) {
Review comment:
Assuming from ARROW-3204, Arrow is still not in the CRAN and looks it's
going to take few months, and looks we can run the build via AppVeyor when it's
on CRAN.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]