Due to the specifics of the Lua language, a structure that has an empty value at the end (for example, {0, nil, 1, 2, nil}) is truncated to the last non-nil value and becomes {0, nil, 1, 2}.
More details are available in the Tarantool documentation.
Despite this behavior, this Go module still uses the github.com/vmihailenco/msgpack module in the decoder (see here), which reports an error in such cases:
msgpack: number of fields in array-encoded struct has changed.
I submitted a fix for this problem here (vmihailenco/msgpack#382), but I have no idea how soon it will be accepted.
Due to the specifics of the Lua language, a structure that has an empty value at the end (for example,
{0, nil, 1, 2, nil}) is truncated to the last non-nil value and becomes{0, nil, 1, 2}.More details are available in the Tarantool documentation.
Despite this behavior, this Go module still uses the
github.com/vmihailenco/msgpackmodule in the decoder (see here), which reports an error in such cases:msgpack: number of fields in array-encoded struct has changed.I submitted a fix for this problem here (vmihailenco/msgpack#382), but I have no idea how soon it will be accepted.