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

Russell Jurney updated PIG-1310:
--------------------------------

    Attachment: datetime3.patch

This patch addresses all issues raised:

I have pulled DateMonthToISO - CustomFormatToISO takes care of this.

I made the introductory comments javadoc with intro sentences.  I put links to 
ISO8601, jodatime and DateFormat stuffs.

I made UnixToISO properly eat a Long.

I made a real example for CustomFormatToISO based on an actual grunt session.  
I linked to jodatime DateFormat documentation in the Javadoc.

I verified that jodatime exceptions throw/appear well in grunt.  I think these 
are good enough for now, they are pretty informative.  I'll assign pig error 
codes when I do the datetime work in Pig.

I adjusted all 'round' package names/comments to 'truncate'.  

> ISO Date UDFs: Conversion, Rounding and Date Math
> -------------------------------------------------
>
>                 Key: PIG-1310
>                 URL: https://issues.apache.org/jira/browse/PIG-1310
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>            Reporter: Russell Jurney
>             Fix For: 0.7.0
>
>         Attachments: datetime3.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I've written UDFs to handle loading unix times, datemonth values and ISO 8601 
> formatted date strings, and working with them as ISO datetimes using jodatime.
> The working code is here: 
> http://github.com/rjurney/oink/tree/master/src/java/oink/udf/isodate/
> It needs to be documented and tests added, and a couple UDFs are missing, but 
> these work if you REGISTER the jodatime jar in your script.  Hopefully I can 
> get this stuff in piggybank before someone else writes it this time :)  The 
> rounding also may not be performant, but the code works.
> Ultimately I'd also like to enable support for ISO 8601 durations.  Someone 
> slap me if this isn't done soon, it is not much work and this should help 
> everyone working with time series.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to