From 9ea09d158a2a1088dc429b8e881632d2d5471d10 Mon Sep 17 00:00:00 2001 From: Curtis Redgate Date: Tue, 14 Mar 2023 15:01:59 -0400 Subject: [PATCH] fix order --- tap_redshift/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_redshift/__init__.py b/tap_redshift/__init__.py index 802ae10..98e9765 100644 --- a/tap_redshift/__init__.py +++ b/tap_redshift/__init__.py @@ -140,7 +140,7 @@ def discover_catalog(conn, db_name, db_schemas): entries = [] LOGGER.warning(f"column_specs before transformation: {column_specs}") table_columns = [{'name': k, 'columns': [ - {'pos': t[1], 'name': t[2], 'nullable': t[3], 'type': t[4]} for t in v + {'pos': t[1], 'name': t[2], 'type': t[3], 'nullable': t[4], } for t in v ]} for k, v in groupby(column_specs, key=lambda t: t[0])] LOGGER.warning(f"Table_columns after transformation: {table_columns}") table_pks = {k: [t[1] for t in v]