-
Notifications
You must be signed in to change notification settings - Fork 60
Datetime support #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datetime support #145
Conversation
13db82c
to
fa131df
Compare
41c5936
to
7719f53
Compare
5672651
to
f60d0c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left several comments. If my questions about parsing are reasonable and I haven't misinterpreted something, they should be fixed. Also tests should contain at least basic value parsing tests so we know that result is valid and not just a valid datetime
6eb6112
to
4ab4218
Compare
4ab4218
to
1cb237b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it's valid
1cb237b
to
6a5d9e6
Compare
Существующие на данный момент тесты не убеждают меня, что поле структуры будет нормально кодироваться/декодироваться.
|
9fe1a3f
to
c1750dc
Compare
e113800
to
2e37483
Compare
5775854
to
323f733
Compare
915537d
to
563a6d6
Compare
The new name is shorter and relates to the current code.
Add Tarantool 2.10 [1] to testing matrix, it is a first release with datetime support. Tarantool 2.9 has been removed, it was never published [2]. setup-tarantool action does not support new Tarantool release policy [3], and Tarantool 2.10 is installed without action but using curl and apt. New issue to fix this has been submitted [4]. 1. https://www.tarantool.io/en/doc/latest/release/2.10.0/ 2. https://www.tarantool.io/en/doc/latest/release/calendar/ 3. tarantool/setup-tarantool#19 4. #186 Needed for #118
This patch provides datetime support for all space operations and as function return result. Datetime type was introduced in Tarantool 2.10. See more in issue [1]. Note that timezone's index and offset and intervals are not implemented in Tarantool, see [2] and [3]. This Lua snippet was quite useful for debugging encoding and decoding datetime in MessagePack: local msgpack = require('msgpack') local datetime = require('datetime') local dt = datetime.parse('2012-01-31T23:59:59.000000010Z') local mp_dt = msgpack.encode(dt):gsub('.', function (c) return string.format('%02x', string.byte(c)) end) print(mp_dt) -- d8047f80284f000000000a00000000000000 1. tarantool/tarantool#5946 2. #163 3. #165 Closes #118
563a6d6
to
19cf335
Compare
This patch provides datetime support for all space operations and as
function return result. Datetime type was introduced in Tarantool 2.10.
See more in issue [1].
Closes #118