def _handle_convert_table_evrs( self, profile: DatasetProfileClass, table_evrs: Iterable[ExpectationValidationResult], pretty_name: str, ) -> None: # TRICKY: This method mutates the profile directly. for evr in table_evrs: exp: str = evr.expectation_config.expectation_type res: dict = evr.result if exp == "expect_table_row_count_to_be_between": profile.rowCount = res["observed_value"] elif exp == "expect_table_columns_to_match_ordered_list": profile.columnCount = len(res["observed_value"]) else: self.report.report_warning(f"profile of {pretty_name}", f"unknown table mapper {exp}")
def _get_dataset_rows(self, dataset_profile: DatasetProfileClass) -> None: dataset_profile.rowCount = self.dataset.get_row_count()