hello
I’m on ge 1.2.6 and working on databricks with a spark dataframe
I have defined some expectations and then added them to an expectation suite:
age_expectation = gx.expectations.ExpectColumnMinToBeBetween(
column=“age”,
min_value={“$PARAMETER”: “age_min”},
max_value={“$PARAMETER”: “age_max”},
)
salary_expectation = gx.expectations.ExpectColumnMaxToBeBetween(
column=“salary”,
min_value={“$PARAMETER”: “salary_min”},
max_value={“$PARAMETER”: “salary_max”},
)
suite.add_expectation(age_expectation)
suite.add_expectation(salary_expectation)
then I’ve changed the age_expectation definition, with a new declaration, but then I’m unable to update the suite definition.
If I try to save the expectation or to delete it from the suite
age_expectation.save()
I get:
KeyError: ‘Cannot update Expectation because it was not found.’
If I do suite.delete_expectation(age_expectation)
I get
KeyError: ‘Cannot delete Expectation because it was not found.’
Nevertheless, in this case the expectation inside the suite is updated but not deleted
Am I missing something?
Thanks