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

[MAINTENANCE] Add suite_name to ExpectationSuiteValidationResult #9677

Merged
merged 6 commits into from Mar 29, 2024

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Mar 29, 2024

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses ruff format + ruff check)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

Copy link

netlify bot commented Mar 29, 2024

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit bc72ce8
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/66071134f501f20008ab5858

Comment on lines +512 to +514
success: bool,
results: list[ExpectationValidationResult],
suite_name: str,
Copy link
Member Author

Choose a reason for hiding this comment

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

These should be guaranteed fields - what is a result if we don't have results, an origin suite, and a success metric?

evaluation_parameters = fields.Dict()
statistics = fields.Dict()
meta = fields.Dict(allow_none=True)
id = fields.UUID(required=False, allow_none=True)
checkpoint_name = fields.String(required=False, allow_none=True)
Copy link
Member Author

Choose a reason for hiding this comment

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

This was wrong - it might be in meta but shouldn't be at the top level

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 82.54%. Comparing base (eff37b8) to head (bc72ce8).

Files Patch % Lines
great_expectations/validator/validator.py 0.00% 3 Missing ⚠️
...expectations/core/expectation_validation_result.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9677      +/-   ##
===========================================
- Coverage    82.55%   82.54%   -0.01%     
===========================================
  Files          511      511              
  Lines        46383    46381       -2     
===========================================
- Hits         38293    38287       -6     
- Misses        8090     8094       +4     
Flag Coverage Δ
3.10 64.60% <60.00%> (-0.01%) ⬇️
3.10 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.10 aws_deps ?
3.10 big ?
3.10 databricks ?
3.10 filesystem ?
3.10 mssql ?
3.10 mysql ?
3.10 postgresql ?
3.10 snowflake ?
3.10 spark ?
3.10 trino ?
3.11 64.60% <60.00%> (-0.01%) ⬇️
3.11 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.98% <60.00%> (-0.01%) ⬇️
3.11 aws_deps 48.99% <60.00%> (-0.01%) ⬇️
3.11 big 64.00% <60.00%> (-0.01%) ⬇️
3.11 databricks 48.21% <60.00%> (-0.01%) ⬇️
3.11 filesystem 63.78% <60.00%> (-0.01%) ⬇️
3.11 mssql 47.43% <10.00%> (+<0.01%) ⬆️
3.11 mysql 47.48% <10.00%> (+<0.01%) ⬆️
3.11 postgresql 54.27% <60.00%> (+<0.01%) ⬆️
3.11 snowflake 48.74% <60.00%> (-0.01%) ⬇️
3.11 spark 60.66% <60.00%> (+<0.01%) ⬆️
3.11 trino 53.90% <60.00%> (+<0.01%) ⬆️
3.8 64.60% <60.00%> (-0.02%) ⬇️
3.8 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.98% <60.00%> (-0.01%) ⬇️
3.8 aws_deps 49.00% <60.00%> (-0.01%) ⬇️
3.8 big 64.00% <60.00%> (-0.01%) ⬇️
3.8 databricks 48.23% <60.00%> (-0.01%) ⬇️
3.8 filesystem 63.79% <60.00%> (-0.01%) ⬇️
3.8 mssql 47.41% <10.00%> (+<0.01%) ⬆️
3.8 mysql 47.47% <10.00%> (+<0.01%) ⬆️
3.8 postgresql 54.26% <60.00%> (+<0.01%) ⬆️
3.8 snowflake 48.76% <60.00%> (-0.01%) ⬇️
3.8 spark 60.62% <60.00%> (+<0.01%) ⬆️
3.8 trino 53.89% <60.00%> (+<0.01%) ⬆️
3.9 64.61% <60.00%> (-0.01%) ⬇️
3.9 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.9 aws_deps ?
3.9 big ?
3.9 databricks ?
3.9 filesystem ?
3.9 mssql ?
3.9 mysql ?
3.9 postgresql ?
3.9 snowflake ?
3.9 spark ?
3.9 trino ?
cloud 0.00% <0.00%> (ø)
docs-basic 54.50% <60.00%> (-0.01%) ⬇️
docs-creds-needed 55.07% <60.00%> (-0.01%) ⬇️
docs-spark 54.60% <60.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -613,7 +610,7 @@ def get_failed_validation_results(
) -> ExpectationSuiteValidationResult:
validation_results = [result for result in self.results if not result.success]

successful_expectations = sum(exp.success for exp in validation_results)
successful_expectations = sum(exp.success or False for exp in validation_results)
Copy link
Member

Choose a reason for hiding this comment

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

why is this required? do some ValidationResults have a None value for success?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah we'd need a separate effort to clean up the child ExpectationValidationResult. I'll follow up

Copy link
Member

@joshua-stauffer joshua-stauffer left a comment

Choose a reason for hiding this comment

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

looks reasonable 👍

@cdkini cdkini enabled auto-merge March 29, 2024 19:08
@cdkini cdkini added this pull request to the merge queue Mar 29, 2024
Merged via the queue into develop with commit 453af44 Mar 29, 2024
186 of 218 checks passed
@cdkini cdkini deleted the m/v1-269/esvr_suite_name branch March 29, 2024 19:47
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.

None yet

2 participants