spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashok Kumar <ashok34...@yahoo.com.INVALID>
Subject Windows operation orderBy desc
Date Mon, 01 Aug 2016 13:56:35 GMT
Hi,
in the following Window spec I want orderBy ("<column>") to be displayed in descending
order please
val W = Window.partitionBy("col1").orderBy("col2")
If I Do
val W = Window.partitionBy("col1").orderBy("col2".desc)

It throws error
console>:26: error: value desc is not a member of String

How can I achieve that?
Thanking you
Mime
View raw message