Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/11336
  
    one thing to highlight, previously we discussed a proposal to display a 
subset of values for a variable, such as when typing in the variable name in R 
shell or RStudio
    
    ```
    > a <- iris
    > a
        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
    ```
    
    This PR includes a change to how Column is presented in this case,
    
    before
    ```
    > a <- as.DataFrame(iris)
    > a
    SparkDataFrame[Sepal_Length:double, Sepal_Width:double, 
Petal_Length:double, Petal_Width:double, Species:string]
    > a$Sepal_Length
    Column Sepal_Length
    ```
    
    after
    ```
    > a$Sepal.Length
      [1] 5.1 4.9 4.7 4.6 5.0 5.4 4.6 5.0 4.4 4.9 5.4 4.8 4.8 4.3 5.8 5.7 5.4 
5.1
     [19] 5.7 5.1 5.4 5.1 4.6 5.1 4.8 5.0 5.0 5.2 5.2 4.7 4.8 5.4 5.2 5.5 4.9 
5.0
    ```
    
    So instead of type and name we would be doing a collect.
    
    In the earlier discussion, it was concluded that we would not be doing this 
without an explicit method call (like `head(col)`), unless, perhaps when the 
data frame is local.



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