Uh oh!
There was an error while loading. Please reload this page.
[Spark 3922] Refactor spark-core to use Utils.UTF_8 - #2781
Conversation
zsxwing
commented
Oct 13, 2014
/cc @rxin, @JoshRosen |
AmplabJenkins
commented
Oct 13, 2014
Can one of the admins verify this patch? |
SparkQA
commented
Oct 13, 2014
QA tests have started for PR 2781 at commit
|
srowen
commented
Oct 13, 2014
I vote for |
SparkQA
commented
Oct 13, 2014
QA tests have finished for PR 2781 at commit
|
AmplabJenkins
commented
Oct 13, 2014
Test FAILed. |
vanzin
commented
Oct 13, 2014
Like @srowen, I prefer to use existing constants. Also, it might be worth it to import the constant directly and just use (Edit: just fixed typo.) |
SparkQA
commented
Oct 14, 2014
QA tests have started for PR 2781 at commit
|
SparkQA
commented
Oct 14, 2014
QA tests have finished for PR 2781 at commit
|
SparkQA
commented
Oct 14, 2014
QA tests have started for PR 2781 at commit
|
zsxwing
commented
Oct 14, 2014
Good point. I updated to use |
SparkQA
commented
Oct 14, 2014
QA tests have finished for PR 2781 at commit
|
SparkQA
commented
Oct 23, 2014
QA tests have started for PR 2781 at commit
|
SparkQA
commented
Oct 23, 2014
QA tests have finished for PR 2781 at commit
|
zsxwing
commented
Oct 27, 2014
retest this please |
rxin
commented
Oct 28, 2014
Jenkins, retest this please. |
SparkQA
commented
Oct 28, 2014
Test build #22344 has started for PR 2781 at commit
|
SparkQA
commented
Oct 28, 2014
Test build #22344 has finished for PR 2781 at commit
|
AmplabJenkins
commented
Oct 28, 2014
Test PASSed. |
rxin
commented
Oct 28, 2014
LGTM. @JoshRosen any further comment? |
JoshRosen
commented
Oct 28, 2014
This looks good to me. Thanks! |
rxin
commented
Oct 28, 2014
Merging in master. Thanks. |
A global UTF8 constant is very helpful to handle encoding problems when converting between String and bytes. There are several solutions here:
val UTF_8 = Charset.forName("UTF-8")to Utils.scalaIMO, I prefer option 1) because people can find it easily.
This is a PR for option 1) and only fixes Spark Core.