@@ -448,8 +448,7 @@ def process_node(node: HierarchyNode):
448448 record = record , # type: ignore
449449 error_location = location ,
450450 error_message = template_object (
451- node .missing_parent_id_error_message ,
452- record
451+ node .missing_parent_id_error_message , record
453452 ),
454453 failure_type = "record" ,
455454 error_type = "record" ,
@@ -522,10 +521,7 @@ def process_node(node: HierarchyNode) -> bool:
522521 entity = node .parent_entity ,
523522 record = record , # type: ignore
524523 error_location = location ,
525- error_message = template_object (
526- node .no_valid_records_error_message ,
527- record
528- ),
524+ error_message = template_object (node .no_valid_records_error_message , record ),
529525 failure_type = "record" ,
530526 error_type = "record" ,
531527 error_code = node .no_valid_records_error_code ,
@@ -624,6 +620,7 @@ def apply_sync_filters(
624620 excluded_columns = filter_column_names ,
625621 reporting = rule .reporting ,
626622 parent = rule .parent ,
623+ error_on_null = True ,
627624 ),
628625 )
629626 if not success :
@@ -655,6 +652,7 @@ def apply_sync_filters(
655652 expression = f"NOT ({ rule .expression } )" ,
656653 reporting = rule .reporting ,
657654 parent = rule .parent ,
655+ error_on_null = True ,
658656 ),
659657 )
660658 if not success :
@@ -887,3 +885,8 @@ def filter_data_contract_record_rejections(
887885 ):
888886 """Method to filter out record rejection errors from the data contract for a given entity"""
889887 raise NotImplementedError ()
888+
889+ @staticmethod
890+ def get_entity_count (entity : EntityType ) -> int :
891+ """Method to get count of records in entity"""
892+ raise NotImplementedError ()
0 commit comments