Skip to content

[FEATURE] Add element_count to unexpected rows results#11882

Open
BALOGUN-DAVID wants to merge 1 commit into
great-expectations:developfrom
BALOGUN-DAVID:unexpected-rows-element-count
Open

[FEATURE] Add element_count to unexpected rows results#11882
BALOGUN-DAVID wants to merge 1 commit into
great-expectations:developfrom
BALOGUN-DAVID:unexpected-rows-element-count

Conversation

@BALOGUN-DAVID
Copy link
Copy Markdown

Closes #11045

Changes

  • Add table.row_count as a metric dependency for UnexpectedRowsExpectation.
  • Return element_count in BASIC, SUMMARY, and COMPLETE validation result payloads.
  • Add regression assertions for element_count while preserving existing result_format behavior.

Tests

  • .\.venv\Scripts\python.exe -m pytest tests/expectations/core/test_unexpected_rows_expectation.py -v

  • .\.venv\Scripts\python.exe -m invoke lint --no-pty

  • Description of PR changes above includes a link to an existing GitHub issue: Unexpected_rows_expectation doesn't give element_count in the validation results #11045

  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB], [MINORBUMP]

  • Code is linted - run invoke lint (uses ruff format + ruff check)

  • Appropriate tests and docs have been updated

@gx-cla-bot
Copy link
Copy Markdown

gx-cla-bot Bot commented May 17, 2026

A new contributor, HUZZAH! Welcome and thanks for joining our community. In order to accept a pull request we require that all contributors sign our Contributor License Agreement. We have two different CLAs, depending on whether you are contributing to GX in a personal or professional capacity. Please sign the one that is applicable to your situation so that we may accept your contribution:

Individual Contributor License Agreement v1.0
Software Grant and Corporate Contributor License Agreement v1.0

Once you have signed the CLA, you can add a comment with the text @cla-bot check and the bot will update the PR status!

Please reach out to the #gx-community-support channel, on our Slack if you have any questions or if you have already signed the CLA and are receiving this message in error.

Users missing a CLA: balogun-david

@netlify
Copy link
Copy Markdown

netlify Bot commented May 17, 2026

👷 Deploy request for niobium-lead-7998 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 33e7dce

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.

Unexpected_rows_expectation doesn't give element_count in the validation results

1 participant