Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Dec 17, 2024
1 parent efbdafe commit 3024432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/python/pymongoarrow/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def _parse_builder_map(builder_map):
full_names = []
for candidate in list(builder_map):
if candidate.startswith(key + "."):
names.append(candidate[len(key) + 1 :])
name = candidate[len(key) + 1 :]
if "." in name or "[" in name:
continue
names.append(name)
full_names.append(candidate)
arrs = [builder_map[c] for c in full_names]
builder_map[key] = StructArray.from_arrays(arrs, names=names)
Expand Down

0 comments on commit 3024432

Please sign in to comment.