Skip to content

Commit

Permalink
fix the validation of the metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna Imshenetska authored and Hanna Imshenetska committed Oct 24, 2024
1 parent ac1fd9c commit 3a53989
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/syngen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.47
0.9.48rc3
5 changes: 4 additions & 1 deletion src/syngen/ml/config/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,12 @@ def _run(self):
self.merged_metadata.pop("global", None)
self.metadata.pop("global", None)

if self.type_of_process == "train" and self.validation_source:
for table_name in self.merged_metadata.keys():
self._gather_existed_columns(table_name)

for table_name in self.merged_metadata.keys():
if self.type_of_process == "train" and self.validation_source:
self._gather_existed_columns(table_name)
self._check_existence_of_source(table_name)
self._check_existence_of_key_columns(table_name)
self._check_existence_of_referenced_columns(table_name)
Expand Down

0 comments on commit 3a53989

Please sign in to comment.