[
https://issues.apache.org/jira/browse/CALCITE-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16494292#comment-16494292
]
Sergey Nuyanzin commented on CALCITE-1884:
------------------------------------------
[~julianhyde] thank you for your comment
just created a PR
however one [travis job failed
|https://travis-ci.org/apache/calcite-avatica/builds/385394506] (others are ok)
with timeout issue {noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:javadoc (default-cli) on
project avatica-parent: Execution default-cli of goal
org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:javadoc failed: Plugin
org.apache.maven.plugins:maven-javadoc-plugin:3.0.0 or one of its dependencies
could not be resolved: Could not transfer artifact
org.apache.maven.shared:maven-artifact-transfer:jar:0.9.1 from/to central
(https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443
[repo.maven.apache.org/151.101.44.215] failed: Connection timed out (Connection
timed out) -> [Help 1]
{noformat}
I do not think it somehow relates to the changes
> DateTimeUtils produces incorrect results for days before Gregorian cutovers
> ---------------------------------------------------------------------------
>
> Key: CALCITE-1884
> URL: https://issues.apache.org/jira/browse/CALCITE-1884
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Affects Versions: 1.13.0
> Reporter: Haohui Mai
> Assignee: Haohui Mai
> Priority: Major
> Fix For: avatica-1.12.0
>
>
> dateStringToUnixDate() / unixDateToString() do not return consistent result.
> The following test fails:
> {noformat}
> @Test public void testUnixDate() {
> int days = DateTimeUtils.dateStringToUnixDate("1500-04-30");
> assertEquals("1500-04-30", DateTimeUtils.unixDateToString(days));
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)