[ 
https://issues.apache.org/jira/browse/PHOENIX-5422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17619235#comment-17619235
 ] 

Istvan Toth edited comment on PHOENIX-5422 at 10/18/22 5:35 AM:
----------------------------------------------------------------

TIL that joda doesn't support nanosecond precision, which happens to break most 
TIMESTSAMP operations in Phoenix, as we reduce the precision to millis because 
of this.

Yet another reason to get rid of it.


was (Author: stoty):
TIL that joda doesn't support nanosecond precision, which happens to break most 
TIMESTSAMP operations in Phoenix, as we reduce the precision to mills because 
of this.



Yet another reason to get rid of it.

> 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: Minor
>         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)

Reply via email to