You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/02/05 01:39:37 UTC

[jira] [Commented] (SPARK-5605) Allow using String to specify colum name in DSL aggregate functions

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

Apache Spark commented on SPARK-5605:
-------------------------------------

User 'rxin' has created a pull request for this issue:
https://github.com/apache/spark/pull/4376

> Allow using String to specify colum name in DSL aggregate functions
> -------------------------------------------------------------------
>
>                 Key: SPARK-5605
>                 URL: https://issues.apache.org/jira/browse/SPARK-5605
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>
> Since it is unlikely users need to call aggregate functions on a literal string, we might as well simplify the dsl to also support calling aggregate functions on a column by name.
> e.g.
> sum("colName")
> instead of
> sum($"colName")  or   sum(col("colName")) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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