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

Commit f1ef90a

Browse files
author
Sergey Vasilyev
committed
Tolerate column type mismatch, it could be aligned later & better
1 parent 3474795 commit f1ef90a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

data_diff/hashdiff_tables.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ def _validate_and_adjust_columns(self, table1: TableSegment, table2: TableSegmen
118118
if lowest.precision != col2.precision:
119119
table2._schema[c2] = attrs.evolve(col2, precision=lowest.precision)
120120

121-
elif isinstance(col1, ColType_UUID):
122-
if strict and not isinstance(col2, ColType_UUID):
123-
raise TypeError(f"Incompatible types for column '{c1}': {col1} <-> {col2}")
124-
125-
elif isinstance(col1, StringType):
126-
if strict and not isinstance(col2, StringType):
127-
raise TypeError(f"Incompatible types for column '{c1}': {col1} <-> {col2}")
128-
129121
for t in [table1, table2]:
130122
for c in t.relevant_columns:
131123
ctype = t._schema[c]

0 commit comments

Comments
 (0)