Skip to content
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

Fix read data failure for TypeList defined in TypeSet #1195

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions helper/schema/field_reader_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func (r *ConfigFieldReader) readField(
// the address with the real list index. i.e. set.50 might actually
// map to set.12 in the config, since it is in list order in the
// config, not indexed by set value.

updatedAddress := make([]string, len(address))
copy(updatedAddress, address)
address = updatedAddress

for i, v := range schemaList {
// Sets are the only thing that cause this issue.
if v.Type != TypeSet {
Expand Down