-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17299] TRIM/LTRIM/RTRIM should not strips characters other than spaces #14924
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
Conversation
|
Test build #64798 has finished for PR 14924 at commit
|
|
Can you add a unit test for this? |
|
@rxin Done 👍 |
|
Test build #64827 has finished for PR 14924 at commit
|
|
The implementation in |
|
@srowen yes in stringExpressions the |
|
Test build #64856 has finished for PR 14924 at commit
|
|
LGTM. Seems like this should go into 2.0.x as well since it's really a bug fix. |
|
Merged to master/2.0 |
1 similar comment
|
Merged to master/2.0 |
…n spaces ## What changes were proposed in this pull request? TRIM/LTRIM/RTRIM should not strips characters other than spaces, we were trimming all chars small than ASCII 0x20(space) ## How was this patch tested? fixed existing tests. Author: Sandeep Singh <sandeep@techaddict.me> Closes #14924 from techaddict/SPARK-17299. (cherry picked from commit 7775d9f) Signed-off-by: Sean Owen <sowen@cloudera.com>
What changes were proposed in this pull request?
TRIM/LTRIM/RTRIM should not strips characters other than spaces, we were trimming all chars small than ASCII 0x20(space)
How was this patch tested?
fixed existing tests.