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 authored Apr 26, 2024
1 parent 0f2c2c3 commit 4f4d40f
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 4f4d40f

Please sign in to comment.