Replies: 2 comments
-
You don't need to guess the encoding, it is described in the documentation: https://www.tarantool.io/en/doc/latest/dev_guide/internals/msgpack_extensions/#the-decimal-type. (It seems, this question is connected with https://stackoverflow.com/q/76249086/1598057.) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank I fixed with import |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing on top of the crate Alopecosa crate. I have added a missing feature to support UUID, DateTime and Decimal types. Both UUID and DateTime work fine when I pack a message page to Tarantool and select it back. The problem is with Decimal type. I can pack and send it to Tarantool and insert it into a space that has a field of type decimal. But when I try to deserialize it, I get an error.
I debugged it and saw something like this:
Then in my deserialize Rust output (34904.075):
Based on my debugging, index 0 = 2 is the number of scale, but I don't know what the other numbers are. The length is not fixed; it depends on the field
amount
.My problem is related to deserializing decimal only.
Here my working code Deserialize DateTIme just for info:
Beta Was this translation helpful? Give feedback.
All reactions