-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] Limit Result Format and QueryMetricProvider
total unexpected records
#10432
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1560cf0
Only fetch MAX_IN_MEMORY_RECORDS_ALLOWED
NathanFarmer a05b09d
Add UnexpetedIndexList type
NathanFarmer ff01c09
Fix type errors
NathanFarmer ad43152
Merge branch 'develop' into b/ph-1599/unexpected-rows-query-oom
NathanFarmer 3fd6dbd
Fix type errors
NathanFarmer 15110d7
Add metric return type
NathanFarmer 2f2b458
Add metric return type
NathanFarmer 6719404
Protext against any return type
NathanFarmer ec8330d
Try to break some tests
NathanFarmer 30d4f36
Type checker
NathanFarmer 1133829
Test change
NathanFarmer eb5cafd
Fix pandas bug with filtering too early
NathanFarmer 7cbbce5
Experimental change
NathanFarmer 279e857
Add limit to unexpected_rows via changes to map_condition_auxilliary_…
NathanFarmer 0c60d4e
Add limit to column_pair_map_condition_auxilliary_methods
NathanFarmer 1c2ddfa
Add limit to multicolumn_map_condition_auxilliary_methods
NathanFarmer 0b76dda
Revert test change to 200 records
NathanFarmer dadedb2
Add return types
NathanFarmer 13578fd
Fix return type
NathanFarmer 8b5f81a
Fix return type
NathanFarmer d49d13f
Fix return type
NathanFarmer f29a183
Merge branch 'develop' into b/ph-1599/unexpected-rows-query-oom
NathanFarmer 283780c
Add all of the return types
NathanFarmer 16727c2
Refactor out query parameters cleanup logic
NathanFarmer 0183b39
Incorrect return type
NathanFarmer d25f399
Add test for _get_parameters_dict_from_query_parameters
NathanFarmer 28cfc66
Add test for _get_sqlalchemy_records_from_query_and_batch_selectable
NathanFarmer a285786
Merge branch 'develop' into b/ph-1599/unexpected-rows-query-oom
NathanFarmer 4f6a6bd
Remove uneccessary sa.select
NathanFarmer eda5406
Merge branch 'b/ph-1599/unexpected-rows-query-oom' of github.com:grea…
NathanFarmer 9e2cb4a
Fix type errror
NathanFarmer e9ea554
Make type checker happy
NathanFarmer c4f37b5
Add fetchmany test
NathanFarmer 83be1bc
Update docs
NathanFarmer cc9c5c5
Merge branch 'develop' into b/ph-1599/unexpected-rows-query-oom
NathanFarmer 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
18 changes: 7 additions & 11 deletions
18
...ctions_based_on_results/choose_a_result_format/_optional_key_reference_table.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
The following table lists the valid keys for a Result Format dictionary and what their purpose is. Not all keys are used by every verbosity level. | ||
|
||
| Dictionary key | Purpose | | ||
| --- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
|`"result_format"` | Sets the fields to return in Validation Results. Valid values are `"BASIC"`, `"BOOLEAN_ONLY"`, `"COMPLETE"`, and `"SUMMARY"`. The default value is `"SUMMARY"`. | | ||
| `"unexpected_index_column_names"` | Defines the columns that can be used to identify unexpected results. For example, primary key (PK) column(s) or other columns with unique identifiers. Supports multiple column names as a list. | | ||
| Dictionary key | Purpose | | ||
| --- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
|`"result_format"` | Sets the fields to return in Validation Results. Valid values are `"BASIC"`, `"BOOLEAN_ONLY"`, `"COMPLETE"`, and `"SUMMARY"`. The default value is `"SUMMARY"`. | | ||
| `"unexpected_index_column_names"` | Defines the columns that can be used to identify unexpected results. For example, primary key (PK) column(s) or other columns with unique identifiers. Supports multiple column names as a list. | | ||
|`"return_unexpected_index_query"` | When running validations, a query (or a set of indices) is returned that allows you to retrieve the full set of unexpected results as well as the values of the identifying columns specified in `"unexpected_index_column_names"`. Setting this value to `False` suppresses the output (default is `True`). | | ||
| `"partial_unexpected_count"` | Sets the number of results to include in `"partial_unexpected_counts"`, `"partial_unexpected_list"`, and `"partial_unexpected_index_list"` if applicable. Set the value to zero to suppress the unexpected counts. | | ||
| `"exclude_unexpected_values"` | When running validations, a set of unexpected results' indices and values is returned. Setting this value to `True` suppresses values from the output to only have indices (default is `False`). | | ||
| `"include_unexpected_rows"` | When `True` this returns the entire row for each unexpected value in dictionary form. This setting only applies when `"result_format"` has been explicitly set to a value other than `"BOOLEAN_ONLY"`. | | ||
|
||
:::note | ||
`include_unexpected_rows` returns EVERY row for each unexpected value. In large tables, this could result in an unmanageable amount of data. | ||
::: | ||
| `"partial_unexpected_count"` | Sets the number of results to include in `"partial_unexpected_counts"`, `"partial_unexpected_list"`, and `"partial_unexpected_index_list"` if applicable. Set the value to zero to suppress the unexpected counts. | | ||
| `"exclude_unexpected_values"` | When running validations, a set of unexpected results' indices and values is returned. Setting this value to `True` suppresses values from the output to only have indices (default is `False`). | | ||
| `"include_unexpected_rows"` | When `True` this returns up to 200 entire rows for each unexpected value in dictionary form. This setting only applies when `"result_format"` has been explicitly set to a value other than `"BOOLEAN_ONLY"`. | |
This file contains 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 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 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.
All I did was remove this note. Not sure why the diffs are hard to read.