spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <ja...@japila.pl>
Subject Re: write and call UDF in spark dataframe
Date Thu, 21 Jul 2016 07:09:10 GMT
On Wed, Jul 20, 2016 at 1:22 PM, Rishabh Bhardwaj <rbnext29@gmail.com> wrote:

> val new_df = df.select(from_unixtime($"time").as("newtime"))

or better yet using tick (less typing and more prose than code :))

df.select(from_unixtime('time) as "newtime")

Jacek

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message