[ https://issues.apache.org/jira/browse/SPARK-9325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15025611#comment-15025611 ]
Hossein Falaki commented on SPARK-9325: --------------------------------------- To help R users and not open up the API, how about adding head and collect functions for Column, that just print out a warning that explain how to do it the "right" way: {code} collect(df$Col) Warning: DataFrame Column may be not be materialized. Please use collect(select(df, df$Col)) {code} > Support `collect` on DataFrame columns > -------------------------------------- > > Key: SPARK-9325 > URL: https://issues.apache.org/jira/browse/SPARK-9325 > Project: Spark > Issue Type: Sub-task > Components: SparkR > Reporter: Shivaram Venkataraman > > This is to support code of the form > ``` > ages <- collect(df$Age) > ``` > Right now `df$Age` returns a Column, which has no functions supported. > Similarly we might consider supporting `head(df$Age)` etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org