Add valid string case check (#1335)#1347
Conversation
ghanse
left a comment
There was a problem hiding this comment.
Overall looks good. Left a few small comments. Can you add some performance tests for this check?
Here's an example:
dqx/tests/perf/test_apply_checks.py
Lines 2144 to 2167 in 9c8fcaf
|
Thanks for the review and the helpful comments. I’ll work through the requested changes, add the performance test coverage, and update the PR accordingly. |
|
Hi @ghanse, I’ve incorporated the feedback from the review into PR #1347. The updates include the requested documentation changes, revised title-case behavior for uppercase abbreviations, updated integration expectations, use of an internal substring-length constant, consolidation of the rule-construction coverage, and performance tests for all four supported case modes. The PR is ready for another review. Thanks! |
ghanse
left a comment
There was a problem hiding this comment.
LGTM
@SyedIshmumAhnaf FYI, I modified the sentence case to require uppercase for the 1st character of the sentence only. The remaining characters can have any case. I think this better matches the intent.
Changes
has_valid_string_caserow-level check for validating consistent string casing.upper,lower,title, andsentencecase modes.caseargument and reject unsupported values.Linked issues
Resolves #1335
Tests
Documentation and Demos