Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13763#discussion_r67659762
  
    --- Diff: R/pkg/R/SQLContext.R ---
    @@ -330,6 +330,30 @@ jsonRDD <- function(sqlContext, rdd, schema = NULL, 
samplingRatio = 1.0) {
       }
     }
     
    +#' Create a SparkDataFrame from an ORC file.
    +#'
    +#' Loads an ORC file, returning the result as a SparkDataFrame.
    +#'
    +#' @param path Path of file to read.
    +#' @return SparkDataFrame
    +#' @rdname read.orc
    +#' @export
    +#' @name read.orc
    +#' @method read.orc default
    +#' @note read.orc since 2.0.0
    +read.orc.default <- function(path) {
    +  sparkSession <- getSparkSession()
    +  # Allow the user to have a more flexible definiton of the text file path
    +  path <- suppressWarnings(normalizePath(path))
    +  read <- callJMethod(sparkSession, "read")
    +  sdf <- callJMethod(read, "orc", path)
    +  dataFrame(sdf)
    +}
    +
    +read.orc <- function(x, ...) {
    --- End diff --
    
    ... and remove this function which is for back compat only


---
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

Reply via email to