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

    https://github.com/apache/spark/pull/22954#discussion_r232167110
  
    --- Diff: R/pkg/R/SQLContext.R ---
    @@ -215,14 +278,16 @@ createDataFrame <- function(data, schema = NULL, 
samplingRatio = 1.0,
       }
     
       if (is.null(schema) || (!inherits(schema, "structType") && 
is.null(names(schema)))) {
    -    row <- firstRDD(rdd)
    +    if (is.null(firstRow)) {
    +      firstRow <- firstRDD(rdd)
    --- End diff --
    
    I <3 4 digits!


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to