Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16409] [SQL] regexp_extract with optional groups causes NPE - #14504
Closed
srowen wants to merge 4 commits into
Closed
[SPARK-16409] [SQL] regexp_extract with optional groups causes NPE#14504srowen wants to merge 4 commits into
srowen wants to merge 4 commits into
Conversation
SparkQA
commented
Aug 5, 2016
Test build #63258 has finished for PR 14504 at commit
|
SparkQA
commented
Aug 6, 2016
Test build #63310 has finished for PR 14504 at commit
|
SparkQA
commented
Aug 6, 2016
Test build #63313 has finished for PR 14504 at commit
|
asfgit pushed a commit
that referenced
this pull request
Aug 7, 2016
## What changes were proposed in this pull request? regexp_extract actually returns null when it shouldn't when a regex matches but the requested optional group did not. This makes it return an empty string, as apparently designed. ## How was this patch tested? Additional unit test Author: Sean Owen <sowen@cloudera.com> Closes#14504 from srowen/SPARK-16409. (cherry picked from commit 8d87252) Signed-off-by: Sean Owen <sowen@cloudera.com>
asfgit pushed a commit
that referenced
this pull request
Aug 7, 2016
## What changes were proposed in this pull request? regexp_extract actually returns null when it shouldn't when a regex matches but the requested optional group did not. This makes it return an empty string, as apparently designed. ## How was this patch tested? Additional unit test Author: Sean Owen <sowen@cloudera.com> Closes#14504 from srowen/SPARK-16409. (cherry picked from commit 8d87252) Signed-off-by: Sean Owen <sowen@cloudera.com>
srowen
commented
Aug 7, 2016
MemberAuthor
Merged to master/2.0/1.6 |
srowen added a commit
to srowen/spark
that referenced
this pull request
Aug 7, 2016
## What changes were proposed in this pull request? regexp_extract actually returns null when it shouldn't when a regex matches but the requested optional group did not. This makes it return an empty string, as apparently designed. ## How was this patch tested? Additional unit test Author: Sean Owen <sowen@cloudera.com> Closesapache#14504 from srowen/SPARK-16409.
ericl
commented
Aug 7, 2016
Contributor
I think this broke the build: |
srowen
commented
Aug 7, 2016
MemberAuthor
Yes, for 1.6: #14526 |
zzcclp pushed a commit
to zzcclp/spark
that referenced
this pull request
Aug 8, 2016
## What changes were proposed in this pull request? regexp_extract actually returns null when it shouldn't when a regex matches but the requested optional group did not. This makes it return an empty string, as apparently designed. ## How was this patch tested? Additional unit test Author: Sean Owen <sowen@cloudera.com> Closesapache#14504 from srowen/SPARK-16409. (cherry picked from commit 8d87252) Signed-off-by: Sean Owen <sowen@cloudera.com> (cherry picked from commit 1a5e762)
rxin
commented
Aug 8, 2016
Contributor
@srowen did anybody review this? |
srowen
commented
Aug 8, 2016
MemberAuthor
I proceeded for lack of comments, and because this reproduces the Max's test case in the JIRA. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
regexp_extract actually returns null when it shouldn't when a regex matches but the requested optional group did not. This makes it return an empty string, as apparently designed.
How was this patch tested?
Additional unit test