Skip to content

Commit 60beb95

Browse files
authored
fix: Missing keys in list_to_arrow_table (#2778)
1 parent c8b7b03 commit 60beb95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

awswrangler/_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@ def list_to_arrow_table(
899899
names = []
900900
if mapping:
901901
names = list(mapping[0].keys())
902+
for row in mapping:
903+
for k in row.keys():
904+
if k not in names:
905+
names.append(k)
902906
for n in names:
903907
v = [row[n] if n in row else None for row in mapping]
904908
arrays.append(v)

0 commit comments

Comments
 (0)