Github user adrian555 commented on the issue:

    https://github.com/apache/spark/pull/22455
  
    Another flavor will be this
    ```r
    print.SparkDataFrame <- function(x, ...) {
      if ((length(list(...)) > 0) && 
identical(sparkR.conf("spark.sql.repl.eagerEval.enabled", "false")[[1]], 
"true")) {
        # TODO: limit the maxNumRows and truncate
        df <- collect(x)
        print(df, ...)
      } else {
        show(x)
      }
    }
    ```
    this allows the other `print` formats to be taken. For example, when eager 
execution is enabled, `print(createDataFrame(iris), quote=TRUE)` will have such 
output
    ```
        Sepal_Length Sepal_Width Petal_Length Petal_Width      Species          
    
    1          "5.1"       "3.5"        "1.4"       "0.2"     "setosa"
    2          "4.9"       "3.0"        "1.4"       "0.2"     "setosa"
    3          "4.7"       "3.2"        "1.3"       "0.2"     "setosa"
    4          "4.6"       "3.1"        "1.5"       "0.2"     "setosa"
    ```


---

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

Reply via email to