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

Zhijie Shen updated PIG-1314:
-----------------------------

    Attachment: PIG-1314-2.patch

I've updated the patch with the following changes:

1. Editing some codes related to IO.
2. Implemented most of the UDF in lised 
https://cwiki.apache.org/confluence/display/PIG/DateTime+type+specification, 
excluding DateAdd, whose functionality is not the clear to me.
3. Correcting some error when merging the my modifications with the latest 
version in the repository.

There's following issues to be discussed:
1. the output datatype of DiffDate(DateTime d1, DateTime d2) should use long 
instead of int, because the diff may be too large for int range to conver.
2. what does DateTime DateAdd(DateTime d1) mean? Adding datetime based on the 
current time?
3. we allow explicit cast between datetime and string, correct? Similarly, do 
we allow  explicit cast between datetime and long/int (representing unix 
timestamp)?
                
> Add DateTime Support to Pig
> ---------------------------
>
>                 Key: PIG-1314
>                 URL: https://issues.apache.org/jira/browse/PIG-1314
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: 0.7.0
>            Reporter: Russell Jurney
>            Assignee: Zhijie Shen
>              Labels: gsoc2012
>         Attachments: PIG-1314-1.patch, PIG-1314-2.patch, joda_vs_builtin.zip
>
>   Original Estimate: 672h
>  Remaining Estimate: 672h
>
> Hadoop/Pig are primarily used to parse log data, and most logs have a 
> timestamp component.  Therefore Pig should support dates as a primitive.
> Can someone familiar with adding types to pig comment on how hard this is?  
> We're looking at doing this, rather than use UDFs.  Is this a patch that 
> would be accepted?
> This is a candidate project for Google summer of code 2012. More information 
> about the program can be found at 
> https://cwiki.apache.org/confluence/display/PIG/GSoc2012

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to