From 61271246848ec9430e05678f319c286f63955241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Ruiz?= Date: Fri, 26 Apr 2024 17:39:29 +0200 Subject: [PATCH] Fix Parquet files format (#217) --- 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 5313418a4580b..942fb893d431e 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')