Add functional_dependency test #1019
Open
+77
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #1020, resolves #989
✅ Readme updated
✅ New integration test added
✅ Integration tests passed
Problem
There is no functional dependency test. A column is functionally dependent on other columns in a table if each distinct combination of those others always leads to the same (possibly null) value in our column.
Example. In this table,
customer_name
is functionally dependent oncustomer_id
. The important part is that both rows for customer 2 have the same name "Brock."Solution
Add a functional_dependency generic test. The implementation is modeled on PR #177, which introduced a different generic test.
Usage. To test
customer_name
is functionally dependent oncustomer_id
.Checklist