diff --git a/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_present_in_other_table.py b/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_present_in_other_table.py index a4e47d83c181..3b28ea008f4b 100644 --- a/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_present_in_other_table.py +++ b/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_present_in_other_table.py @@ -111,7 +111,7 @@ def _prescriptive_renderer( template_dict = configuration.kwargs.get("template_dict") - template_str = "All values in column $foreign_key_column are present in column $primary_key_column_in_foreign_table of table $foreign_table. (Observed Value is the number of missing values)." + template_str = "All values in column $foreign_key_column are present in column $primary_key_column_in_foreign_table of table $foreign_table." params = { "foreign_key_column": template_dict["foreign_key_column"], @@ -163,7 +163,10 @@ def _validate( self._validate_template_dict(configuration) final_value = metrics.get("query.template_values")[0]["COUNT(1)"] return ExpectationValidationResult( - success=(final_value == 0), result={"observed_value": final_value} + success=(final_value == 0), + result={ + "observed_value": f"{final_value} missing item{'s' if final_value != 1 else ''}" + }, ) examples = [