Skip to content

Commit 3024432

Browse files
committed
fix logic
1 parent efbdafe commit 3024432

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bindings/python/pymongoarrow/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def _parse_builder_map(builder_map):
6464
full_names = []
6565
for candidate in list(builder_map):
6666
if candidate.startswith(key + "."):
67-
names.append(candidate[len(key) + 1 :])
67+
name = candidate[len(key) + 1 :]
68+
if "." in name or "[" in name:
69+
continue
70+
names.append(name)
6871
full_names.append(candidate)
6972
arrs = [builder_map[c] for c in full_names]
7073
builder_map[key] = StructArray.from_arrays(arrs, names=names)

0 commit comments

Comments
 (0)