From b2a821d2bed8ba831186e7d1c2f8f45fe345cc9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Wed, 27 Nov 2024 14:56:41 -0600 Subject: [PATCH] Add SMALLINT to type hierarchy --- README.md | 1 + target_postgres/connector.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 51d486b..da1394c 100644 --- a/README.md +++ b/README.md @@ -297,6 +297,7 @@ If a column has multiple jsonschema types, the following order is using to order - DECIMAL - BIGINT - INTEGER +- SMALLINT - BOOLEAN - NOTYPE diff --git a/target_postgres/connector.py b/target_postgres/connector.py index e0f002a..868b440 100644 --- a/target_postgres/connector.py +++ b/target_postgres/connector.py @@ -382,6 +382,7 @@ def pick_best_sql_type(sql_type_array: list): DECIMAL, BIGINT, INTEGER, + SMALLINT, BOOLEAN, NOTYPE, ]