You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/03/21 13:29:00 UTC
[jira] [Commented] (PHOENIX-5422) Use Java8 DateTime APIs instead of joda-time APIs
[ https://issues.apache.org/jira/browse/PHOENIX-5422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703201#comment-17703201 ]
Istvan Toth commented on PHOENIX-5422:
--------------------------------------
My current understanding is that we cannot ditch Joda while maintaining backwards compatibility, without re-implementing chunks of its functionality.
The way I see forward is to make much of the date handling functionality pluggable, implement a new standard-compilant module based on java.time, and confine joda to a legacy module for backwards compatiblity
> Use Java8 DateTime APIs instead of joda-time APIs
> -------------------------------------------------
>
> Key: PHOENIX-5422
> URL: https://issues.apache.org/jira/browse/PHOENIX-5422
> Project: Phoenix
> Issue Type: Task
> Affects Versions: 4.8.0
> Reporter: Naveen Gangam
> Assignee: Richárd Antal
> Priority: Major
> Attachments: PHOENIX-5422.master.v1.patch, PHOENIX-5422.master.v2.patch, PHOENIX-5422.master.v3.patch, PHOENIX-5422.master.v4.patch
>
>
> currently, phoenix-hive.jar bundles an old version of joda-time library. Java8 has new DateTime APIs are similar in to the joda-time APIs in features. It would make sense to eliminate a dependency on external library that may or may not be
> a) Actively developed
> b) not guaranteed to be backward compatible with older APIs and could involve code changes as well.
> Its is better to move using JDK8 APIs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)