Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20519][SQL][CORE]Modify to prevent some possible runtime exceptions - #17796
[SPARK-20519][SQL][CORE]Modify to prevent some possible runtime exceptions#1779610110346 wants to merge 1 commit into
Conversation
srowen
left a comment
There was a problem hiding this comment.
Don't make JIRAs for these; these are borderline not worth proposing, please.
There was a problem hiding this comment.
This should be OK, but, it's already being checked for null in the line above.
c5896c7 to
e0eb912Compare10110346
commented
Apr 28, 2017
ok, thanks for review it@srowen |
There was a problem hiding this comment.
CC maybe @yhuai - OK to let tables(null) act like tables()? seems reasonable
srowen
commented
May 4, 2017
@10110346 to be conservative, maybe remove the change to SQLContext. It's not clear to me that you are supposed to be able to call {{tables(null)}} because in this case you should call {{tables()}}. A NullPointerException seems like reasonable behavior. However I think you could also expand the improvement for |
10110346
commented
May 4, 2017
I quite agree with you. |
SparkQA
commented
May 4, 2017
Test build #3689 has finished for PR 17796 at commit
|
gatorsmile
commented
May 5, 2017
ok to test |
SparkQA
commented
May 5, 2017
Test build #76482 has started for PR 17796 at commit |
Test FAILed. I don't know why. |
srowen
left a comment
There was a problem hiding this comment.
Other than the message change, yes, looks good
There was a problem hiding this comment.
The message should be s"Expected hostname (not IP) but got $host"
SparkQA
commented
May 6, 2017
Test build #76507 has finished for PR 17796 at commit
|
10110346
commented
May 6, 2017
@srowen done, thank you very much. |
Signed-off-by: liuxian <liu.xian3@zte.com.cn>
SparkQA
commented
May 8, 2017
Test build #76557 has finished for PR 17796 at commit
|
srowen
commented
May 8, 2017
Merged to master |
…ptions Signed-off-by: liuxian <liu.xian3zte.com.cn> ## What changes were proposed in this pull request? When the input parameter is null, may be a runtime exception occurs ## How was this patch tested? Existing unit tests Author: liuxian <liu.xian3@zte.com.cn> Closesapache#17796 from 10110346/wip_lx_0428.
Signed-off-by: liuxian liu.xian3@zte.com.cn
What changes were proposed in this pull request?
When the input parameter is null, may be a runtime exception occurs
How was this patch tested?
Existing unit tests