-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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] Supports non half width alphanumeric for generic test #8203
[Feature] Supports non half width alphanumeric for generic test #8203
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8203 +/- ##
==========================================
- Coverage 86.54% 86.49% -0.05%
==========================================
Files 179 179
Lines 26538 26538
==========================================
- Hits 22967 22955 -12
- Misses 3571 3583 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Added tests that include full-width hiragana, katakana, kanji, and half-width katakana columns. |
Thanks for raising this PR and adding these test cases @d-kaneshiro ! @gshank and I looked at this, and we'd like to fix it further upstream. @gshank is going to take a deeper look to identify the best place to address this and get back to you. |
d-kaneshiro: Please remove the changes in core/dbt/task/runnable.py and change a line in core/dbt/parser/generic_test_builders.py from "clean_flat_args = [re.sub("[^0-9a-zA-Z_]+", "", arg) for arg in flat_args]" to "clean_flat_args = [re.sub("\W+", "", arg) for arg in flat_args]". |
In addition, the tests/adapter set of tests is for tests that might be different in different adapters, and this functionality should not be different for different adapters, so please move the test to tests/functional/schema_tests. |
@d-kaneshiro there's three main things that we'd need to do for this PR:
QuestionWould you be willing to make these changes? Or would you prefer us to make those changes within your branch? |
@dbeatty10 and @gshank @dbeatty10 |
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.
I do think that putting the functional test in the adapter zone isn't necessary, since this is core dbt functionality and not related to adapters. But it's not that big of an issue. I think we might be rearranging some of this soon anyway.
resolves #8204
Problem
Double-byte characters in GenericTest were displayed as "_".
Example
Double-byte character columns are displayed as "_" when
dbt test
is executed.Solution
Fixed an issue where double-byte characters were not displayed in GenericTest.
Example
All double-byte character columns are displayed when 'dbt test' is executed.
Checklist