Skip to content

Commit 5f42660

Browse files
authored
always confusing
1 parent 92205ba commit 5f42660

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/python/pymongoarrow/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def _get_field_projection_value(self, fname, ftype, projection):
7777
return self._get_field_projection_value(fname, ftype.value_field.type, projection)
7878
if isinstance(ftype, pa.StructType):
7979
for nested_ftype in ftype:
80-
return self._get_field_projection_value(fname + "." + nested_ftype.name, nested_ftype.type, projection)
80+
projection = self._get_field_projection_value(fname + "." + nested_ftype.name, nested_ftype.type, projection)
81+
return projection
8182
projection[fname] = value
8283
return projection
8384

0 commit comments

Comments
 (0)