You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Date and Varchar columns are not supported for PK.
Here are the error messages.
2025-03-14 06:45:49,562 - root - ERROR - Cannot use a column of type Date(_notes=[], precision=6, rounds=True) as a key
Traceback (most recent call last):
File "/app/src/main.py", line 180, in get_table_diff
for difference in data_diff.diff_tables(
File "/usr/local/lib/python3.10/site-packages/data_diff/diff_tables.py", line 96, in __iter__
for i in self.diff:
File "/usr/local/lib/python3.10/site-packages/data_diff/diff_tables.py", line 282, in _diff_tables_wrapper
raise error
File "/usr/local/lib/python3.10/site-packages/data_diff/diff_tables.py", line 255, in _diff_tables_wrapper
yield from self._diff_tables_root(table1, table2, info_tree)
File "/usr/local/lib/python3.10/site-packages/data_diff/diff_tables.py", line 290, in _diff_tables_root
return self._bisect_and_diff_tables(table1, table2, info_tree)
File "/usr/local/lib/python3.10/site-packages/data_diff/diff_tables.py", line 314, in _bisect_and_diff_tables
raise NotImplementedError(f"Cannot use a column of type {kt} as a key")
NotImplementedError: Cannot use a column of type Date(_notes=[], precision=6, rounds=True) as a key
2025-05-17 14:21:31,903 - root - ERROR - Error processing diffs for table platform-mysql-prod-usa-kw.dms.gannettdigital.com.rl_kbas.ControlAll: Cannot use a column of type Text(_notes=[], collation=None) as a key
2025-05-17 14:21:31,904 - root - ERROR - Cannot use a column of type Text(_notes=[], collation=None) as a key
Make sure to include the following (minus sensitive information):
Describe the environment
Describe which OS you're using, which data-diff version, and any other information that might be relevant to this bug.
The text was updated successfully, but these errors were encountered:
Describe the bug
Date and Varchar columns are not supported for PK.
Here are the error messages.
Make sure to include the following (minus sensitive information):
Describe the environment
Describe which OS you're using, which data-diff version, and any other information that might be relevant to this bug.
The text was updated successfully, but these errors were encountered: