Skip to content
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

Allow all DQ constraints to be generated from an Analyzer #508

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

mentekid
Copy link
Contributor

@mentekid mentekid commented Oct 4, 2023

Issue #, if available:

Description of changes:

Due to our typing system, it is always possible to create an Analyzer, but converting that into a generic Constraint and generic Check is impossible.

Instead, give callers the option to convert an Analyzer into a Check with these helper functions. This enables reuse of Analyzers - you can use an Analyzer directly, or convert it to a Check by assigning it a severity and assertion.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@eycho-am eycho-am left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mentekid mentekid merged commit ca034c3 into master Oct 9, 2023
1 check passed
@mentekid mentekid deleted the feature/analyzer-to-check branch October 9, 2023 17:45
eycho-am pushed a commit that referenced this pull request Oct 20, 2023
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
eycho-am pushed a commit to eycho-am/deequ that referenced this pull request Oct 24, 2023
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
javierdlrm pushed a commit to javierdlrm/deequ that referenced this pull request Oct 31, 2023
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
Co-authored-by: Yannis Mentekidis <mentekid@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants