apache / apache/arrow-java

[Java] JDBC test failures for Windows build with timezone != UTC

未关闭
#387 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: bug
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

Run "mvn install" in the java directory on a system with timezone set to PST (Pacific Standard, 8 hours behind UTC).

For the arrow-jdbc module, the following errors occur:

`[INFO]`
`[INFO] Results:`
`[INFO]`
`[ERROR] Failures:`
`[ERROR] JdbcToArrowDataTypesTest.testJdbcToArrowValues:146->testDataSets:209 expected:<45935000> but was:<74735000>`
`[ERROR] JdbcToArrowDataTypesTest.testJdbcToArrowValues:146->testDataSets:213 expected:<1518439535000> but was:<1518468335000>`
`[ERROR] JdbcToArrowDataTypesTest.testJdbcToArrowValues:146->testDataSets:205 expected:<-365> but was:<-364>`
`[ERROR] JdbcToArrowNullTest.testJdbcToArrowValues:123->testDataSets:165->testAllVectorValues:209 expected:<17574> but was:<17573`
`>`
`[ERROR] JdbcToArrowTest.testJdbcToArrowValues:138->testDataSets:206 expected:<17574> but was:<17573>`
`[ERROR] JdbcToArrowVectorIteratorTest.testJdbcToArrowValuesNoLimit:107->validate:199->assertDateDayVectorValues:277 expected:<17`
`574> but was:<17573>`
`[ERROR] JdbcToArrowVectorIteratorTest.testJdbcToArrowValues:95->validate:199->assertDateDayVectorValues:277 expected:<17574> but`
` was:<17573>`
`[INFO]`
`[ERROR] Tests run: 93, Failures: 7, Errors: 0, Skipped: 0`

**Environment**: Windows 10, Java 8
**Reporter**: [Bob Tinsman](https://issues.apache.org/jira/browse/ARROW-11957) / @bobtins

**Note**: *This issue was originally created as [ARROW-11957](https://issues.apache.org/jira/browse/ARROW-11957). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

贡献指南

打开贡献指南

调研方向

在 Windows 10 上将时区设置为 PST,从 java 目录运行 "mvn install",然后检查失败的 arrow-jdbc 测试:JdbcToArrowDataTypesTest、JdbcToArrowNullTest、JdbcToArrowTest 和 JdbcToArrowVectorIteratorTest。已完成的标准是报告的七个依赖时区的失败不再发生,并且模块的测试通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
databases, testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。