Re: Spark SQL: Day of month from Timestamp

2015-03-24 Thread Harika Matha
You can use the functions Arush mentioned if you use HiveContext instead of SparkContext. On Tue, Mar 24, 2015 at 12:59 PM, Arush Kharbanda < ar...@sigmoidanalytics.com> wrote: > Hi > > You can use functions like year(date),month(date) > > Thanks > Arush > > On Tue, Mar 24, 2015 at 12:46 PM, Haru

Re: Spark SQL: Day of month from Timestamp

2015-03-24 Thread Arush Kharbanda
Hi You can use functions like year(date),month(date) Thanks Arush On Tue, Mar 24, 2015 at 12:46 PM, Harut Martirosyan < harut.martiros...@gmail.com> wrote: > Hi guys. > > Basically, we had to define a UDF that does that, is there a built in > function that we can use for it? > > -- > RGRDZ Haru

Spark SQL: Day of month from Timestamp

2015-03-24 Thread Harut Martirosyan
Hi guys. Basically, we had to define a UDF that does that, is there a built in function that we can use for it? -- RGRDZ Harut