You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Patrick Woody (Jira)" <ji...@apache.org> on 2020/09/11 02:56:00 UTC

[jira] [Created] (ARROW-9973) [Java] JDBC DateConsumer does not allow dates before epoch

Patrick Woody created ARROW-9973:
------------------------------------

             Summary: [Java] JDBC DateConsumer does not allow dates before epoch
                 Key: ARROW-9973
                 URL: https://issues.apache.org/jira/browse/ARROW-9973
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.0.1
            Reporter: Patrick Woody


DateConsumer seems to do an overflow check when converting from a SQL Date and sees if the TimeUnit.MILLISECONDS.toDays(<sql time>) is negative. This is how any date less than 1970-01-01 will be represented, so unfortunately the adapter breaks for these values.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)