You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//for i := 0; i < len(client.Specs.Columns); i++ {
123
-
fori:=0; i<len(keys); i++ {
124
-
for_, column:=rangeclient.Specs.Columns {
125
-
ifkeys[i] ==column.Name {
126
-
row[client.Specs.Columns[i].Name] =values[i]
122
+
iflen(values) >=len(keys) {
123
+
row:=map[string]any{}
124
+
fori:=0; i<len(keys); i++ {
125
+
for_, column:=rangeclient.Specs.Columns {
126
+
127
+
ifkeys[i] ==column.Name {
128
+
row[client.Specs.Columns[i].Name] =values[i]
129
+
}
127
130
}
128
131
}
132
+
rows=append(rows, row)
133
+
} else {
134
+
client.Logger.Warn().Str("file", client.Specs.File).Str("line", line).Int("expected", len(keys)).Int("actual", len(values)).Msg("invalid number of columns")
0 commit comments