From 47ef1741f75c9c28d1e4f39b17d8b3b4e9a52500 Mon Sep 17 00:00:00 2001 From: mjsqu Date: Tue, 29 Aug 2023 11:46:11 +1200 Subject: [PATCH] Force DataFrame datatypes to 'object' --- target_snowflake/file_formats/parquet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_snowflake/file_formats/parquet.py b/target_snowflake/file_formats/parquet.py index ad02e6a5..a0ef3c6c 100644 --- a/target_snowflake/file_formats/parquet.py +++ b/target_snowflake/file_formats/parquet.py @@ -66,7 +66,7 @@ def records_to_dataframe(records: Dict, flatten_record = flattening.flatten_record(record, schema, max_level=data_flattening_max_level) flattened_records.append(flatten_record) - return pandas.DataFrame(data=flattened_records) + return pandas.DataFrame(data=flattened_records, dtype='object',) def records_to_file(records: Dict,