Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 715c12c

Browse files
committed
Small fix
1 parent 70afc1e commit 715c12c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

data_diff/databases/database_types.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ class FractionalType(NumericType):
5353
class Float(FractionalType):
5454
pass
5555

56+
class IKey(ABC):
57+
"Interface for ColType, for using a column as a key in data-diff"
58+
python_type: type
5659

57-
class Decimal(FractionalType):
60+
class Decimal(FractionalType, IKey): # Snowflake may use Decimal as a key
5861
@property
5962
def python_type(self) -> type:
6063
if self.precision == 0:
@@ -66,11 +69,6 @@ class StringType(ColType):
6669
pass
6770

6871

69-
class IKey(ABC):
70-
"Interface for ColType, for using a column as a key in data-diff"
71-
python_type: type
72-
73-
7472
class ColType_UUID(StringType, IKey):
7573
python_type = ArithUUID
7674

0 commit comments

Comments
 (0)