-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[FEATURE] Support underscore in the condition_value
of a row_condition
#5393
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] Support underscore in the condition_value
of a row_condition
#5393
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
condition_value
of a row_condition
condition_value
of a row_condition
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 very much for identifying this and addressing it 🙇
@@ -42,9 +42,9 @@ def _set_notnull(s, l, t) -> None: | |||
eq = Literal("==") | |||
ops = (gt ^ lt ^ ge ^ le ^ eq).setResultsName("op") | |||
fnumber = Regex(r"[+-]?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?").setResultsName("fnumber") | |||
condition_value = Suppress('"') + Word(f"{alphanums}.").setResultsName( | |||
condition_value = Suppress('"') + Word(f"{alphanums}._").setResultsName( |
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.
LGTM 👍
condition_value
of a row_condition
condition_value
of a row_condition
What would be involved in getting this merged? Maybe @sp1thas would need to rebase to develop? I have some long format tables and being able to allow "_" where each row is a metric name of some sort will be really useful. |
I was about to ask the same @andrewm4894 . Based on #5387 (which is quite recent), merging commis into |
…ps://github.com/great-expectations/great_expectations into feature/GREAT-1009/remaining-migration-for-init * 'feature/GREAT-1009/remaining-migration-for-init' of https://github.com/great-expectations/great_expectations: [MAINTENANCE] Update cli with new default simple checkpoint name (#5450) [MAINTENANCE] Add unit and integration tests for Splitting on Divided Integer (#5449) support underscore in condition value (#5393) Remove checkpoint from top level of schema since it is captured in `meta` (#5445) [MAINTENANCE] Add checkpoint name to validation results (#5442)
…eature/GREAT-954/data-assistant-logic-migration * feature/GREAT-1009/remaining-migration-for-init: clean up [MAINTENANCE] Update cli with new default simple checkpoint name (#5450) [MAINTENANCE] Add unit and integration tests for Splitting on Divided Integer (#5449) support underscore in condition value (#5393) Remove checkpoint from top level of schema since it is captured in `meta` (#5445) [MAINTENANCE] Add checkpoint name to validation results (#5442)
Changes proposed in this pull request:
_
) in a condition_valueThis PR aims to allow the user to add an underscore in the condition value of a row condition. For instance, after merging this PR, the following expectation is going to work instead of raising:
ConditionParserError: unable to parse condition: col("foo")=="a_b"
Definition of Done
Please delete options that are not relevant.
Thank you for submitting!