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 f3cece8 commit 8aa9d52
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 8aa9d52

Please sign in to comment.