[ 
https://issues.apache.org/jira/browse/SPARK-24572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617120#comment-16617120
 ] 

Felix Cheung commented on SPARK-24572:
--------------------------------------

thanks! very close -  showDF doesn't return anything so we should refactor this 
slight as 

 
{code:java}
setMethod("show", "SparkDataFrame",
          function(object) {
            if (identical(sparkR.conf("spark.sql.repl.eagerEval.enabled", 
"false")[[1]], "true")) {
              showDF(object)
            } else {
              cols <- lapply(dtypes(object), function(l) {
                paste(l, collapse = ":")
              })
              s <- paste(cols, collapse = ", ")
              cat(paste(class(object), "[", s, "]\n", sep = ""))
            }
          })

{code}
 

> "eager execution" for R shell, IDE
> ----------------------------------
>
>                 Key: SPARK-24572
>                 URL: https://issues.apache.org/jira/browse/SPARK-24572
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 2.4.0
>            Reporter: Felix Cheung
>            Priority: Major
>
> like python in SPARK-24215
> we could also have eager execution when SparkDataFrame is returned to the R 
> shell



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to