Skip to content

Commit 684eace

Browse files
committed
cleanup
1 parent e6576b0 commit 684eace

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sdv/metadata/multi_table.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,6 @@ def _validate_child_map_circular_relationship(self, child_map):
160160
f'tables {errors}.'
161161
)
162162

163-
def _validate_foreign_child_key(self, child_table_name, parent_table_name, child_foreign_key):
164-
pass
165-
# child_primary_key = _cast_to_iterable(self.tables[child_table_name].primary_key)
166-
# child_foreign_key = _cast_to_iterable(child_foreign_key)
167-
# if set(child_foreign_key).intersection(set(child_primary_key)):
168-
# raise InvalidMetadataError(
169-
# f"Invalid relationship between table '{parent_table_name}' and table "
170-
# f"'{child_table_name}'. A relationship must connect a primary key "
171-
# 'with a non-primary key.'
172-
# )
173-
174163
def _validate_new_foreign_key_is_not_reused(
175164
self, parent_table_name, parent_primary_key, child_table_name, child_foreign_key
176165
):
@@ -239,8 +228,6 @@ def _validate_relationship(
239228
parent_table_name, parent_primary_key, child_table_name, child_foreign_key
240229
)
241230

242-
self._validate_foreign_child_key(child_table_name, parent_table_name, child_foreign_key)
243-
244231
self._validate_relationship_sdtypes(
245232
parent_table_name, parent_primary_key, child_table_name, child_foreign_key
246233
)

0 commit comments

Comments
 (0)