[MDEV-16013] During the extra hour upon DST switch historical data from time-versioned tables is shown inconsistently Created: 2018-04-24 Updated: 2023-09-24 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Time zones, Versioned Tables |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | duplicate | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Note: I don't really know if there is anything that can be done about it apart from documenting; but before documenting, the expected behavior and limitations should be clearly defined. I'm using the autumn DST switch, the one that goes one hour back.
=> at this time, SELECT * FROM and SELECT * FROM ... FOR SYSTEM_TIME AS OF CURRENT_TIMESTAMP show different results, even though the current documentation says:
Here is the whole data:
Timestamps 03:59:xx signify events which happened before the switch, and 03:00:xx are those that happened after the switch. |
| Comments |
| Comment by Sergei Golubchik [ 2018-05-25 ] | ||||||||||||||||||||||||||||||||
|
complete test case:
| ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-05-25 ] | ||||||||||||||||||||||||||||||||
|
The issue here, timestamp must always be used, and passed between functions as a timestamp — number of seconds since epoch. It must never be converted to MYSQL_TIME and back, this conversion loses information. | ||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2018-05-31 ] | ||||||||||||||||||||||||||||||||
|
The bug seems to be not in System Versioning, but with SELECT returning resultset containing data from different timezones. 1. set timezone to Europe/Helsinki, set time:
2. start server, run:
| ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-05 ] | ||||||||||||||||||||||||||||||||
|
See my test case. There is only one time zone involved. Timestamp is always increasing time never goes back. | ||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2018-06-08 ] | ||||||||||||||||||||||||||||||||
|
> serg [18:24] Postponed until fixed SELECT. Reproducible without System Versioning:
| ||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2018-07-09 ] | ||||||||||||||||||||||||||||||||
|
serg what is related Issue for the above problem? | ||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-07-10 ] | ||||||||||||||||||||||||||||||||
|
MDEV-16422 and MDEV-16423 |