From 6f0c4321c1eae03be0b4289443871345dc19be5e Mon Sep 17 00:00:00 2001 From: Alexey Mikhaylov Date: Wed, 10 Jan 2024 20:02:57 +1100 Subject: [PATCH 1/2] LAB-271 Redshift Spectrum type mapping --- data_diff/databases/redshift.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data_diff/databases/redshift.py b/data_diff/databases/redshift.py index d7bcd876..a88e27ef 100644 --- a/data_diff/databases/redshift.py +++ b/data_diff/databases/redshift.py @@ -10,6 +10,7 @@ FractionalType, DbPath, TimestampTZ, + Integer ) from data_diff.databases.postgresql import ( BaseDialect, @@ -31,6 +32,8 @@ class Dialect(PostgresqlDialect): "double": Float, "real": Float, "super": JSON, + "int": Integer, # Redshift Spectrum + "float": Float, # Redshift Spectrum } SUPPORTS_INDEXES = False From d59eab7cbc39dac094394ce053a5dc618d26d1e5 Mon Sep 17 00:00:00 2001 From: teraamp Date: Wed, 10 Jan 2024 09:08:40 +0000 Subject: [PATCH 2/2] style fixes by ruff --- data_diff/databases/redshift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_diff/databases/redshift.py b/data_diff/databases/redshift.py index a88e27ef..356d3134 100644 --- a/data_diff/databases/redshift.py +++ b/data_diff/databases/redshift.py @@ -10,7 +10,7 @@ FractionalType, DbPath, TimestampTZ, - Integer + Integer, ) from data_diff.databases.postgresql import ( BaseDialect,