I wrote:
> I would like to have a discussion about a number of
> issues/questions related to support for the datetime
> datatype in pig.

One of the broader issues I want to discuss is the continued use of
joda-time http://www.joda.org/joda-time/

* JSR-310 https://jcp.org/en/jsr/detail?id=310 introduced a revamped Date
and Time API into the standard Java class libraries under java.time.*
* Stephen Colebourne, Mr 'joda-time' himself, was one of the Specification
Leads, shepherding this process for many years.
http://blog.joda.org/2009/11/why-jsr-310-isn-joda-time_4941.html
* JSR-310 was originally targeted for Java 7 but slipped to Java 8.
* A backport of JSR-310 is available for Java 6 & 7. This provides
equivalent functionality, but under the package name 'org.threeten.bp.*'
instead of 'java.time.*' ... as in Java 8.
https://github.com/ThreeTen/threetenbp
http://www.threeten.org/

My straw-man proposal for evolution of DateTime support is as follows:

* The roadmap for pig should include adoption of JSR-310 for Date and Time
support
* use of joda-time within pig should be deprecated and phased-out
* the backport org.threeten.bp.* classes can be used for as long Java 7 (&
6) are supported by pig
* When Java 8 becomes the minimum requirement for pig then the package
names can be switched to java.time.* ... and the org.threeten.bp dependency
can be dropped.


Michael

Reply via email to