Skip to content

Commit

Permalink
fix: Missing keys in list_to_arrow_table (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
kukushking authored Apr 22, 2024
1 parent c8b7b03 commit 60beb95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions awswrangler/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ def list_to_arrow_table(
names = []
if mapping:
names = list(mapping[0].keys())
for row in mapping:
for k in row.keys():
if k not in names:
names.append(k)
for n in names:
v = [row[n] if n in row else None for row in mapping]
arrays.append(v)
Expand Down

0 comments on commit 60beb95

Please sign in to comment.