You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/12/29 20:55:00 UTC

[jira] [Work logged] (BEAM-8358) Failing test in UTC+8 timezone

     [ https://issues.apache.org/jira/browse/BEAM-8358?focusedWorklogId=364405&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-364405 ]

ASF GitHub Bot logged work on BEAM-8358:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Dec/19 20:54
            Start Date: 29/Dec/19 20:54
    Worklog Time Spent: 10m 
      Work Description: stale[bot] commented on issue #9736: [BEAM-8358] Fixes the failing test issue in UTC+8 timezone
URL: https://github.com/apache/beam/pull/9736#issuecomment-569541169
 
 
   This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 364405)
    Time Spent: 40m  (was: 0.5h)

> Failing test in UTC+8 timezone
> ------------------------------
>
>                 Key: BEAM-8358
>                 URL: https://issues.apache.org/jira/browse/BEAM-8358
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-jdbc
>            Reporter: Zoltan Kauker
>            Assignee: Zoltan Kauker
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The [SchemaUtilTest.testBeamRowMapperDateTime()|https://github.com/apache/beam/blob/5a7bd66174e43ebedd6b5b4d7835e11309505b33/sdks/java/io/jdbc/src/test/java/org/apache/beam/sdk/io/jdbc/SchemaUtilTest.java#L227] test case is failing because the *date_col* value is one day later than the expected value.
> The problem comes from [SchemaUtil.createDateExtractor()|https://github.com/apache/beam/blob/5a7bd66174e43ebedd6b5b4d7835e11309505b33/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/SchemaUtil.java#L277]. The implementation converts the date to ZonedDateTime first and then gets the start time of the date.
> Being in Singapore the timezone adjustments increments the day on the test case's timestamp which leads to an assertion failure.



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