Skip to content

Commit

Permalink
Fix Parquet files format (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Sep 9, 2024
1 parent 9c65d2b commit 6127124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/amazon-security-lake/src/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def write_parquet_file(ocsf_events: list, filename: str) -> None:
"""
Write OCSF events to a Parquet file.
"""
table = pa.Table.from_pydict({'events': ocsf_events})
table = pa.Table.from_pylist(ocsf_events)
pq.write_table(table, filename, compression='ZSTD')


Expand Down

0 comments on commit 6127124

Please sign in to comment.