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

[FEATURE] Add UnexpectedRowsExpectation #10342

Merged
merged 40 commits into from
Sep 10, 2024

Conversation

NathanFarmer
Copy link
Contributor

@NathanFarmer NathanFarmer commented Sep 5, 2024

Cherry-pick relevant changes to UnexpectedRowsExpectation into 0.18.x branch:

Refactor to follow v0 Expectation patterns


  • 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

@NathanFarmer NathanFarmer self-assigned this Sep 5, 2024
@NathanFarmer NathanFarmer changed the title [MAINTENANCE] UnexpectedRowsExpectation renderer and validation improvements [FEATURE] Add UnexpectedRowsExpectation Sep 5, 2024
@NathanFarmer NathanFarmer marked this pull request as ready for review September 10, 2024 14:44
Comment on lines 35 to +43
query: Optional[str] = metric_value_kwargs.get(
"query"
) or cls.default_kwarg_values.get("query")
) or metric_value_kwargs.get("unexpected_rows_query")

batch_ref = (
"batch"
if metric_value_kwargs.get("unexpected_rows_query")
else "active_batch"
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a different pattern than this in v1, but it's not worth the effort to backport that pattern. This is likely one of the last v0 releases.

@NathanFarmer NathanFarmer added this pull request to the merge queue Sep 10, 2024
Merged via the queue into 0.18.x with commit 927c8b9 Sep 10, 2024
56 checks passed
@NathanFarmer NathanFarmer deleted the f/ph-1522/unexpected-rows-expectation-updates branch September 10, 2024 16:11
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.

2 participants