Re: d.filter("id in max(id)")

2016-02-26 Thread Michael Armbrust
You can do max on a struct to get the max value for the first column, along with the values for other columns in the row (an argmax) Here is an example

d.filter("id in max(id)")

2016-02-25 Thread Ashok Kumar
Hi, How can I make that work? val d = HiveContext.table("table") select * from table where ID = MAX(ID) from table Thanks