-
Notifications
You must be signed in to change notification settings - Fork 902
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
Fix regex handling of embedded null characters #9470
Fix regex handling of embedded null characters #9470
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9470 +/- ##
================================================
- Coverage 10.79% 10.66% -0.13%
================================================
Files 116 117 +1
Lines 18869 19725 +856
================================================
+ Hits 2036 2104 +68
- Misses 16833 17621 +788
Continue to review full report at Codecov.
|
@andygrove @revans2 Could you try this change to see if it fixes #6196 (and it's duplicate #9440) for you? |
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
Thanks @davidwendt I ran an integration test with the spark plugin and confirmed that this fixes the issue. |
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.
Looks good to me aside from one small request/question.
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.
Looks good to me! 👍
@gpucibot merge |
Closes #6196
This fixes the regex pattern-matching logic to handle embedded null characters in a strings column like literals. The matching logic was previously identifying a 0-valued character (same as a null) as a flag to indicate the end of the string. A gtest is also included to test ignoring and matching on a null character.