spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al M (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-24306) Sort a Dataset with a lambda (like RDD.sortBy)
Date Thu, 17 May 2018 12:51:00 GMT

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message