New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expect_column_pair_values_to_be_in_set throws exception when row has both column values to be paired missing #9577
Comments
Hi @MaxTh0ma1s, thanks for creating this issue. I discussed the error and behavior internally with Engineering today - they're now aware of it, but I don't know when a fix will be prioritized. I added my code to reproduce the issue to aid investigation. As a workaround for now, I suggest modifying your source dataframe using Reproduced using:
Code to reproduce:
|
Describe the bug
Simple expect_column_pair_values_to_be_in_set expectation throws exception when row has both column values to be paired missing
To Reproduce
Basic setup, with the following expectation configured ...
{
"expectation_type": "expect_column_pair_values_to_be_in_set",
"kwargs": {
"column_A": "mycolA",
"column_B": "mycolB",
"value_pairs_set": [["apple", "red"], ["apple", "green"], ["apple", "yellow"], ["banana", "yellow"]]
}
}
Sample data to reproduce
id,mycolA,mycolB,valid
1,apple,red,pass
2,apple,green,pass
3,apple,yellow,pass
4,peach,peach,fail
5,banana,yellow,pass
6,banana,black,fail
7,,,fail
8,melon,melon,fail
An exception is raised
Expected behavior
I do not expect basic use of this expectation on simple data to throw an exception.
Environment (please complete the following information):
Additional context
Note issue was reproduced by Rachel House
https://discourse.greatexpectations.io/t/how-to-specify-expect-column-pair-values-to-be-in-set-value-pairs-set-input-arg-via-json/1621/5
The text was updated successfully, but these errors were encountered: