Skip to content

"msgpack: number of fields in array-encoded struct has changed" while using "GetTyped" #522

Description

@Ponywka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions