You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/09/11 03:00:00 UTC
[jira] [Updated] (ARROW-9973) [Java] JDBC DateConsumer does not
allow dates before epoch
[ https://issues.apache.org/jira/browse/ARROW-9973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-9973:
----------------------------------
Labels: pull-request-available (was: )
> [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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)