-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[BUGFIX] Narrow single-pass column_values.unique on SQLAlchemy (Redshift WLM) #11863
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
Merged
joshua-stauffer
merged 19 commits into
fivetran:develop
from
leodrivera:bugfix/column-values-unique-window-function-redshift-wlm
Aug 7, 2026
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
112bc85
[BUGFIX] Narrow single-pass column_values.unique on SQLAlchemy
leodrivera 73aaac4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 23a7a69
Merge branch 'great-expectations:develop' into bugfix/column-values-u…
leodrivera 8118c18
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
leodrivera dc2c097
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
leodrivera c3901b0
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
leodrivera 4098256
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
joshua-stauffer 6af2f53
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
leodrivera 294a33b
Address review: fix result_format gaps in single-pass column_values.u…
leodrivera 587546c
Merge branch 'bugfix/column-values-unique-window-function-redshift-wl…
leodrivera 357a3d0
Merge branch 'develop' of https://github.com/great-expectations/great…
leodrivera 0185ea0
Adopt MapMetricProvider row-retrieval provider hooks from #11998
leodrivera c593d87
Fix mypy errors flagged by CI static-analysis
leodrivera 3b15662
Add explanatory comments to linter ignores
leodrivera 8f58749
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
leodrivera d220b2b
Resolve count_per_value.map dependency in temp-table test
leodrivera ff37717
Prevent the duplicate-count label from being shadowed by a source column
joshua-stauffer 9392a83
Read the batch once per statement on MySQL-family engines
joshua-stauffer 19019dd
Merge branch 'develop' into bugfix/column-values-unique-window-functi…
joshua-stauffer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
435 changes: 368 additions & 67 deletions
435
great_expectations/expectations/metrics/column_map_metrics/column_values_unique.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this breaks the
unexpected_index_queryin data docs, because we didn't override_sqlalchemy_map_condition_queryin the map metric provider to handle the new path.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.
Fixed in 294a33b — registered a dedicated
_sqlalchemy_unique_unexpected_index_queryprovider for the.unexpected_index_querysuffix. It builds the same join-back query as the other row-retrieval paths and renders it withsqlalchemy_select_to_sql_string, so the string surfaced in validation results and Data Docs runs as-is against the source database. Covered bytest_unexpected_index_query_is_executable_sqlfrom #11964.