Uh oh!
There was an error while loading. Please reload this page.
[SQL] [SPARK-6620] Speed up toDF() and rdd() functions by constructing converters in ScalaReflection - #5279
[SQL] [SPARK-6620] Speed up toDF() and rdd() functions by constructing converters in ScalaReflection#5279vlyubin wants to merge 9 commits into
Conversation
There was a problem hiding this comment.
This isn't quite related to this PR, but I don't think it was necessary to use GenericMutableRow here.
There was a problem hiding this comment.
I agree. The original version uses a mutable row mostly because of the updates in the while loop I guess.
SparkQA
commented
Mar 31, 2015
Test build #29441 has started for PR 5279 at commit |
SparkQA
commented
Mar 31, 2015
Test build #29441 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Mar 31, 2015
Test PASSed. |
rxin
commented
Mar 31, 2015
I know you are probably still working on this - any benchmark numbers? |
rxin
commented
Mar 31, 2015
cc @davies since you guys are both changing this part of the code lately. |
There was a problem hiding this comment.
Please break the line after the first =>.
liancheng
commented
Mar 31, 2015
Went though very quickly for the first time, left some styling comments. |
SparkQA
commented
Mar 31, 2015
Test build #29499 has started for PR 5279 at commit |
SparkQA
commented
Mar 31, 2015
Test build #29499 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Mar 31, 2015
Test PASSed. |
vlyubin
commented
Apr 1, 2015
Here are the benchmark numbers: http://pastie.org/private/6vg7kg2yfwop2ov5zu2eq |
SparkQA
commented
Apr 1, 2015
Test build #29514 has started for PR 5279 at commit |
SparkQA
commented
Apr 1, 2015
Test build #29514 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Apr 1, 2015
Test PASSed. |
vlyubin
commented
Apr 3, 2015
ping |
rxin
commented
Apr 3, 2015
@vlyubin who are you pinging? is this still "WIP"? |
vlyubin
commented
Apr 3, 2015
@rxin Sorry, I just removed the WIP tag. There isn't anything more to add, as it turned out that there are no places here where we could use SpecificMutableRow to speed things up. |
rxin
commented
Apr 3, 2015
Jenkins, retest this please. |
There was a problem hiding this comment.
Is there a reason this pattern cannot be
valconverter=CatalystTypeConverters.createToScalaConverter(schema)
rows.map(converter).toArray?
It looks like this pretty efficiently handles this situation in the same way that you've extracted it here (even with calling convertRowWithConverters).
There was a problem hiding this comment.
Not really, I'll update these.
SparkQA
commented
Apr 8, 2015
Test build #29896 has started for PR 5279 at commit |
SparkQA
commented
Apr 8, 2015
Test build #29897 has started for PR 5279 at commit |
SparkQA
commented
Apr 9, 2015
Test build #29896 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Apr 9, 2015
Test PASSed. |
SparkQA
commented
Apr 9, 2015
Test build #29897 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Apr 9, 2015
Test PASSed. |
liancheng
commented
Apr 9, 2015
@vlyubin Would you mind to add |
There was a problem hiding this comment.
nit: useconvertedMap(keyConverter(entry.getKey)) = valueConverter(entry.getValue)
to avoid creating a tuple.
aarondav
commented
Apr 9, 2015
LGTM, @marmbrus would you mind doing a final pass? |
SparkQA
commented
Apr 10, 2015
Test build #29988 has started for PR 5279 at commit |
SparkQA
commented
Apr 10, 2015
Test build #29988 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Apr 10, 2015
Test PASSed. |
SparkQA
commented
Apr 10, 2015
Test build #30051 has started for PR 5279 at commit |
SparkQA
commented
Apr 10, 2015
Test build #30051 has finished for PR 5279 at commit
|
AmplabJenkins
commented
Apr 10, 2015
Test PASSed. |
cc @marmbrus