[ 
https://issues.apache.org/jira/browse/PIG-3587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rekha Joshi updated PIG-3587:
-----------------------------

    Status: Patch Available  (was: In Progress)

Thanks Cheolsoo for your inputs!
I agree there is some overlap on these functions.However the idea is to give a 
rolling impact with these udf.Not cleanly/programmatically obtained  via 
AddDuration.
Sample usage:
day_wk = DateConstants('day of week', 'yyyy-MM-dd HH:mm:ss.S');
some_date = (day_wk == 3 ? RollDate('day of year',  'yyyy-MM-dd HH:mm:ss.S', 
'4') :(day_wk == 2 ? RollDate('day of year', 'yyyy-MM-dd HH:mm:ss.S', '5'):..
Attached patch.


> add functionality for rolling over dates
> ----------------------------------------
>
>                 Key: PIG-3587
>                 URL: https://issues.apache.org/jira/browse/PIG-3587
>             Project: Pig
>          Issue Type: Task
>          Components: piggybank
>    Affects Versions: 0.10.1
>            Reporter: Rekha Joshi
>            Assignee: Rekha Joshi
>              Labels: patch, piggybank
>             Fix For: 0.10.1
>
>         Attachments: PIG-3587.2.patch
>
>
> Add functionality for rolling over dates



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to