You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Owen O'Malley (Jira)" <ji...@apache.org> on 2020/08/26 20:41:00 UTC
[jira] [Resolved] (ORC-661) DateColumnStatistics uses Date, which
is not timezone agnostic.
[ https://issues.apache.org/jira/browse/ORC-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Owen O'Malley resolved ORC-661.
-------------------------------
Fix Version/s: 1.7.0
1.6.4
Resolution: Fixed
I committed this. Thanks for the review, Dongjoon!
> DateColumnStatistics uses Date, which is not timezone agnostic.
> ---------------------------------------------------------------
>
> Key: ORC-661
> URL: https://issues.apache.org/jira/browse/ORC-661
> Project: ORC
> Issue Type: Bug
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Priority: Major
> Fix For: 1.6.4, 1.7.0
>
>
> Java's Date class is horribly broken and should not be used. Unfortunately, we used it to return the results of the min/max for ColumnStatistics. That leads to lots of problems.
> To fix this, we'll create new API methods that return it both as day of epoch and LocalDate. Both of them work much better.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)