From 1be39261b3dbc560211d9de71582ec6f5a8b32c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Ruiz?= Date: Fri, 26 Apr 2024 16:37:46 +0200 Subject: [PATCH] Fix Parquet files format --- integrations/amazon-security-lake/src/lambda_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/amazon-security-lake/src/lambda_function.py b/integrations/amazon-security-lake/src/lambda_function.py index 57b4e5d3d92bd..2e57c874ff329 100644 --- a/integrations/amazon-security-lake/src/lambda_function.py +++ b/integrations/amazon-security-lake/src/lambda_function.py @@ -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')