Re: how to order data in descending order in spark dataset

2016-07-30 Thread Mark Wusinich
> ts.groupBy("b").count().orderBy(col("count"), ascending=False) Sent from my iPhone > On Jul 30, 2016, at 2:54 PM, Don Drake wrote: > > Try: > > ts.groupBy("b").count().orderBy(col("count").desc()); > > -Don > >> On Sat, Jul 30, 2016 at 1:30 PM, Tony Lane

Re: how to order data in descending order in spark dataset

2016-07-30 Thread Don Drake
Try: ts.groupBy("b").count().orderBy(col("count").desc()); -Don On Sat, Jul 30, 2016 at 1:30 PM, Tony Lane wrote: > just to clarify I am try to do this in java > > ts.groupBy("b").count().orderBy("count"); > > > > On Sun, Jul 31, 2016 at 12:00 AM, Tony Lane

Re: how to order data in descending order in spark dataset

2016-07-30 Thread Tony Lane
just to clarify I am try to do this in java ts.groupBy("b").count().orderBy("count"); On Sun, Jul 31, 2016 at 12:00 AM, Tony Lane wrote: > ts.groupBy("b").count().orderBy("count"); > > how can I order this data in descending order of count > Any suggestions > > -Tony

how to order data in descending order in spark dataset

2016-07-30 Thread Tony Lane
ts.groupBy("b").count().orderBy("count"); how can I order this data in descending order of count Any suggestions -Tony