pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy V. Ryaboy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1430) ISODateTime -> DateTime: DateTime UDFs Should Also Support int/second Unix Times in All Operations
Date Sat, 29 May 2010 04:16:36 GMT

    [ https://issues.apache.org/jira/browse/PIG-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873232#action_12873232
] 

Dmitriy V. Ryaboy commented on PIG-1430:
----------------------------------------

I think int vs long doing different things is dangerous.

iirc ISO specifies to the second, so getting an int or a long should assume seconds.

I suggest implementing a duplicate set of functions for millisecond timestamps that actually
have "Ms" in the name (and of course a set of sec to millisec and sec to millisec and both
to ISO conversions :-).

-D

> ISODateTime -> DateTime: DateTime UDFs Should Also Support int/second Unix Times in
All Operations
> --------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1430
>                 URL: https://issues.apache.org/jira/browse/PIG-1430
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>    Affects Versions: 0.7.0
>            Reporter: Russell Jurney
>             Fix For: 0.8.0
>
>
> All functions in contrib.piggybank.java.src.main.java.org.apache.pig.piggybank.evaluation.datetime
should seamlessly accept integer Unix/POSIX times, and return Unix time output when given
an int, and ISO output when given a chararray.
> Note: Unix/POSIX times are the number of seconds elapsed since midnight proleptic Coordinated
Universal Time (UTC) of January 1, 1970, not counting leap seconds.  See http://en.wikipedia.org/wiki/Unix_time

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


Mime
View raw message