From 09af21a58bcff07800f41f41a1314ab0133430c2 Mon Sep 17 00:00:00 2001 From: Hassan Syyid Date: Wed, 9 Oct 2024 23:34:36 +0200 Subject: [PATCH] fix bug in typing --- gluestick/etl_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluestick/etl_utils.py b/gluestick/etl_utils.py index 4b5a5c5..4ef712c 100644 --- a/gluestick/etl_utils.py +++ b/gluestick/etl_utils.py @@ -581,7 +581,7 @@ def get(self, stream, default=None, catalog_types=False, **kwargs): if dtype_dict: # Convert dtype dictionary to pyarrow schema fields = [(col, type_mapping[str(dtype).lower()]) for col, dtype in dtype_dict.items()] - fields = fields.extend([(col, pa.timestamp('ns')) for col in parse_dates]) + fields.extend([(col, pa.timestamp('ns')) for col in parse_dates]) schema = pa.schema(fields) df = pq.read_table(filepath, schema=schema).to_pandas(safe=False) for col, dtype in dtype_dict.items():