Skip to content
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 Request] Specify optional expected case for expect_column_values_to_have_consistent_casing #248

Open
owenprough-sift opened this issue Mar 23, 2023 · 0 comments

Comments

@owenprough-sift
Copy link

Is your feature request related to a problem? Please describe.
I have some string columns whose values should always be uppercase and others whose value should always be lowercase. Today, I can use expect_column_values_to_have_consistent_casing to validate that the column is same-cased, but then I would need to add another test to the column to verify that the casing is correct.

Describe the solution you'd like
My .yml files would be more intuitive if there existed an optional expected_case parameter for expect_column_values_to_have_consistent_casing.

Describe alternatives you've considered
Today I use dbt_utils.expression_is_true() to enforce this expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant