Skip to content

Commit 9f6ea48

Browse files
committed
fix: Missing keys in list_to_arrow_table
Signed-off-by: Anton Kukushkin <[email protected]>
1 parent db7c449 commit 9f6ea48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def list_to_arrow_table(
898898
if not schema:
899899
names = []
900900
if mapping:
901-
names = list(mapping[0].keys())
901+
names = list({k for row in mapping for k in row.keys()})
902902
for n in names:
903903
v = [row[n] if n in row else None for row in mapping]
904904
arrays.append(v)

0 commit comments

Comments
 (0)