You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Robert Li <ro...@kontagent.com> on 2013/06/13 23:44:16 UTC

Question about weekofyear(string date)

Hi All

For this UDF, does it consider the week to be from Monday to Monday or
first hour of Sunday to the last minute of Saturday for example?

Robert

-- 
*

Robert Li | Integration and Support Engineer  | Kontagent
Kontagent is Hiring! <http://www.kontagent.com/why/careers/> | Check us out
in the press! <http://www.kontagent.com/why/news/>*
*Check out our blog: kScope <http://kaleidoscope.kontagent.com/> | Twitter:
@Kontagent <http://www.twitter.com/kontagent>*

Re: Question about weekofyear(string date)

Posted by Robert Li <ro...@kontagent.com>.
Thanks!


On Thu, Jun 13, 2013 at 6:30 PM, Darren Yin <da...@gmail.com> wrote:

> It's all right here: monday to monday and has a concept of the first
> "full" week too.
> https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFWeekOfYear.java
>
>
> On Thu, Jun 13, 2013 at 2:44 PM, Robert Li <ro...@kontagent.com>wrote:
>
>> Hi All
>>
>> For this UDF, does it consider the week to be from Monday to Monday or
>> first hour of Sunday to the last minute of Saturday for example?
>>
>> Robert
>>
>> --
>> *
>>
>> Robert Li | Integration and Support Engineer  | Kontagent
>> Kontagent is Hiring! <http://www.kontagent.com/why/careers/> | Check us
>> out in the press! <http://www.kontagent.com/why/news/>*
>> *Check out our blog: kScope <http://kaleidoscope.kontagent.com/> |
>> Twitter: @Kontagent <http://www.twitter.com/kontagent>*
>>
>
>


-- 
*

Robert Li | Integration and Support Engineer  | Kontagent
Kontagent is Hiring! <http://www.kontagent.com/why/careers/> | Check us out
in the press! <http://www.kontagent.com/why/news/>*
*Check out our blog: kScope <http://kaleidoscope.kontagent.com/> | Twitter:
@Kontagent <http://www.twitter.com/kontagent>*

Re: Question about weekofyear(string date)

Posted by Darren Yin <da...@gmail.com>.
It's all right here: monday to monday and has a concept of the first "full"
week too.
https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFWeekOfYear.java


On Thu, Jun 13, 2013 at 2:44 PM, Robert Li <ro...@kontagent.com> wrote:

> Hi All
>
> For this UDF, does it consider the week to be from Monday to Monday or
> first hour of Sunday to the last minute of Saturday for example?
>
> Robert
>
> --
> *
>
> Robert Li | Integration and Support Engineer  | Kontagent
> Kontagent is Hiring! <http://www.kontagent.com/why/careers/> | Check us
> out in the press! <http://www.kontagent.com/why/news/>*
> *Check out our blog: kScope <http://kaleidoscope.kontagent.com/> |
> Twitter: @Kontagent <http://www.twitter.com/kontagent>*
>