-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
SAT: Implement assert that all fields in all streams contained at least one data point #8272
SAT: Implement assert that all fields in all streams contained at least one data point #8272
Conversation
… once in some record.
tactical suggestion: to avoid breaking all connector builds, we should (temporarily) make this an opt-in flag rather than turned on by default, then create an epic to make it available for all connectors. once a critical mass of connectors is leveraging this option, we should make it turned on by default. WDYT? |
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_core.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/bases/source-acceptance-test/unit_tests/test_core.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reuse existing codebase and change testcases to have easy to understand data representing the case. Also please add cases with schema oneOf keyword, schemas with nested fields and arrays
Update unit tests for _validate_field_appears_at_least_once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, please add some oneOf test cases
…neOf/anyOf choices. Add oneOf/anyOf unit tests.
…ssert-that-all-fields-in-all-streams-contained-at-least-one-data-point
Update CHANGELOG.md
/publish connector=bases/source-acceptance-test
|
…st one data point (airbytehq#8272) * Implement vlidatation if each field in a stream has appeared it least once in some record. * Add unit tests for `_validate_empty_streams` TestBasicRead method. * Add validate_data_points basic read input option. * Update `_validate_field_appears_at_least_once_in_stream` to support oneOf/anyOf choices. Add oneOf/anyOf unit tests. * Bump docker version. Update CHANGELOG.md * Fix test_core.py imports.
What
Closes #7967
How
Updated
TestBasicRead.test_read()
with_validate_field_appears_at_least_once
test.Recommended reading order
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_core.py
🚨 User Impact 🚨
That would require us to fix SAT in all (or almost all) connectors. I think it may be done in the follow up PR.