spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harika Matha <matha.har...@gmail.com>
Subject Re: Spark SQL: Day of month from Timestamp
Date Tue, 24 Mar 2015 08:13:36 GMT
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 <
arush@sigmoidanalytics.com> wrote:

> Hi
>
> You can use functions like year(date),month(date)
>
> Thanks
> Arush
>
> On Tue, Mar 24, 2015 at 12:46 PM, Harut Martirosyan <
> harut.martirosyan@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 Harut
>>
>
>
>
> --
>
> [image: Sigmoid Analytics] <http://htmlsig.com/www.sigmoidanalytics.com>
>
> *Arush Kharbanda* || Technical Teamlead
>
> arush@sigmoidanalytics.com || www.sigmoidanalytics.com
>

Mime
View raw message