[ 
https://issues.apache.org/jira/browse/SPARK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Al M updated SPARK-24306:
-------------------------
    Summary: Sort a Dataset with a lambda (like RDD.sortBy)  (was: Sort a 
Dataset with a lambda (like RDD.sortBy() ))

> Sort a Dataset with a lambda (like RDD.sortBy)
> ----------------------------------------------
>
>                 Key: SPARK-24306
>                 URL: https://issues.apache.org/jira/browse/SPARK-24306
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Al M
>            Priority: Minor
>
> Dataset has many useful functions that do not require hard coded column names 
> (e.g. flatMapGroups, map).  Currently the sort() function requires us to pass 
> the column name as a string. 
> It would be nice to have a function similar to the sortBy in RDD where i can 
> define the keys in a lambda e.g.
> {code:java}
> ds.sortBy(record => record.id){code}



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