-
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
[FEATURE] Added new expectation: ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek… #6622
[FEATURE] Added new expectation: ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek… #6622
Conversation
👷 Deploy request for niobium-lead-7998 pending review.Visit the deploys page to approve it
|
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.
Hi @HadasManor! Thank you so much for the contribution of this expectation. It looks great, I just have two small requests for changes in the PR comments and then we can merge.
f"" | ||
f"" |
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.
Just a nitpick, would you mind removing these two extra f""
lines?
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.
Sure
..._experimental/expectations/expect_yesterday_count_compared_to_avg_equivalent_days_of_week.py
Show resolved
Hide resolved
|
||
|
||
class ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek(ColumnExpectation): | ||
"""Expect No missing days in date column""" |
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.
Would you mind elaborating here in the docstring and/or expectation name to make it more clear? Specifically that it is calculating relative to the specific day of the week (e.g. Tues, Fri, etc...) and that it is looking back at only the last 4 weeks?
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.
Of course
…EquivalentDaysOfWeek
…EquivalentDaysOfWeek
…EquivalentDaysOfWeek
…EquivalentDaysOfWeek
…yCountComparedToAvgEquivalentDaysOfWeek
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.
Thank you for making those changes!
* develop: [FEATURE] Added new expectation: ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek… (#6622) [FEATURE] ZEP - load from shared config (#6655) [MAINTENANCE] Add redshift/snowflake casting for sample data on expect_column_values_to_be_of_type (#6659) [MAINTENANCE] Add separate tests for exact stdev for redshift and snowflake (#6658) [MAINTENANCE] Make only column y data_alt different in col_pair_equal tests (#6661) [MAINTENANCE] Update evaluate_json_test_v3_api func to use the debug_logger with useful info when exception occurs (#6653) [MAINTENANCE] Use the correct test for positive_test__exact_min_and_max on trino (#6652) [MAINTENANCE] Update generate_expectation_tests func to only log an ERROR message if there is an error (#6651)
…eat-expectations/great_expectations into f/dx-106/pandas-named-indices * 'f/dx-106/pandas-named-indices' of https://github.com/great-expectations/great_expectations: [FEATURE] Add sqlite datasource (#6657) [DOCS] doc-356 importable prerequisite box with correct theme applied and default entries (#6666) [DOCS] DOC-400 remove an outdated video link (#6667) [FEATURE] Added new expectation: ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek… (#6622) [FEATURE] ZEP - load from shared config (#6655) [MAINTENANCE] Add redshift/snowflake casting for sample data on expect_column_values_to_be_of_type (#6659) [MAINTENANCE] Add separate tests for exact stdev for redshift and snowflake (#6658) [MAINTENANCE] Make only column y data_alt different in col_pair_equal tests (#6661)
…lag-for-returning-query * develop: [MAINTENANCE] Only spark v2 for special test in not_be_in_set (#6669) [BUGFIX] Avoid key collisions between Rule-Based Profiler terminal literals and MetricConfiguration value keys (#6675) [MAINTENANCE] Make only column y data_alt different in col_pair_in_set tests (#6670) [MAINTENANCE] Add redshift/snowflake casting for sample data on expect_column_values_to_be_in_type_list (#6668) [FEATURE] Add sqlite datasource (#6657) [DOCS] doc-356 importable prerequisite box with correct theme applied and default entries (#6666) [DOCS] DOC-400 remove an outdated video link (#6667) [FEATURE] Added new expectation: ExpectYesterdayCountComparedToAvgEquivalentDaysOfWeek… (#6622) [FEATURE] ZEP - load from shared config (#6655) [MAINTENANCE] Add redshift/snowflake casting for sample data on expect_column_values_to_be_of_type (#6659) [MAINTENANCE] Add separate tests for exact stdev for redshift and snowflake (#6658) [MAINTENANCE] Make only column y data_alt different in col_pair_equal tests (#6661)
…sOfWeek
Please annotate your PR title to describe what the PR does, then give a brief bulleted description of your PR below. PR titles should begin with [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], or [CONTRIB]. If a new feature introduces breaking changes for the Great Expectations API or configuration files, please also add [BREAKING]. You can read about the tags in our contributor checklist.
Changes proposed in this pull request:
After submitting your PR, CI checks will run and @cla-bot will check for your CLA signature.
For a PR with nontrivial changes, we review with both design-centric and code-centric lenses.
In a design review, we aim to ensure that the PR is consistent with our relationship to the open source community, with our software architecture and abstractions, and with our users' needs and expectations. That review often starts well before a PR, for example in GitHub issues or Slack, so please link to relevant conversations in notes below to help reviewers understand and approve your PR more quickly (e.g.
closes #123
).Previous Design Review notes:
Definition of Done
Please delete options that are not relevant.
Thank you for submitting!