Uh oh!
There was an error while loading. Please reload this page.
[SPARK-11691][SQL] Allow to specify compression codec in HadoopFsRela… - #9657
[SPARK-11691][SQL] Allow to specify compression codec in HadoopFsRela…#9657zjffdu wants to merge 8 commits into
Conversation
SparkQA
commented
Nov 12, 2015
Test build #45721 has finished for PR 9657 at commit
|
SparkQA
commented
Nov 12, 2015
Test build #45728 has finished for PR 9657 at commit
|
zjffdu
commented
Dec 1, 2015
@Lewuathe Could you help review this ? This is a dependency issue for refactor CsvRelation to extend HadoopFsRelation. CsvRelation now support to write to compressed format while currently HadoopFsRelationd don't support that. |
There was a problem hiding this comment.
Third party modules should be put above org.apache.spark.* modules.
see: https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-Imports
Lewuathe
commented
Dec 2, 2015
@zjffdu Do you intend to remove the compression codev from But anyway compression codec option in |
There was a problem hiding this comment.
Same as DataFrameWriter import.
zjffdu
commented
Dec 2, 2015
@Lewuathe Yes, I'd like to make CsvRelation to extend HadoopFsRelation also after this change since currently CsvRelation support compression so want to keep its compatibility. |
There was a problem hiding this comment.
Was it written for debug? We can remove show.
zjffdu
commented
Dec 2, 2015
@Lewuathe Thanks for the review. I push another commit to address the comments. Besides I change the compression feature to 1.6.0. |
SparkQA
commented
Dec 2, 2015
Test build #47034 has finished for PR 9657 at commit
|
SparkQA
commented
Dec 2, 2015
Test build #47036 has finished for PR 9657 at commit
|
zjffdu
commented
Dec 3, 2015
Never mind, I change back to 1.7.0 since 1.6 is in rc1 |
SparkQA
commented
Dec 3, 2015
Test build #47118 has finished for PR 9657 at commit
|
There was a problem hiding this comment.
The amount of code changes should be small, so we do not need this additional interface.
If we add an interface for each additional option, the number of interfaces blows up.
There was a problem hiding this comment.
Agree that we should not add interface for every configuration, but considering compression is a very common property, I feel it would be better to keep this interface. We also expose the compression api in RDD.saveAsXX, so think it would be better to be consistent here in dataframe
maropu
commented
Jan 29, 2016
@zjffdu Any updates? If you keep working on it, please check my comments. |
zjffdu
commented
Jan 29, 2016
Will update this PR |
zjffdu
commented
Jan 29, 2016
@maropu Thanks for review, I update the PR to address part of your comments. Please check my comments inline. |
SparkQA
commented
Jan 29, 2016
Test build #50345 has finished for PR 9657 at commit
|
SparkQA
commented
Jan 29, 2016
Test build #50347 has finished for PR 9657 at commit
|
maropu
commented
Jan 29, 2016
@rxin@liancheng Could you review this? |
There was a problem hiding this comment.
Can this just be a normal option?
There was a problem hiding this comment.
Also we shouldn't depend on Hadoop APIs in options, which is a user facing API. Nobody outside the Hadoop world knows how to use the CompressionCodec API.
SparkQA
commented
Jan 29, 2016
Test build #50364 has finished for PR 9657 at commit
|
maropu
commented
Jan 30, 2016
@zjffdu ping |
1 similar comment
maropu
commented
Feb 2, 2016
@zjffdu ping |
zjffdu
commented
Feb 2, 2016
sorry for late response, will update the patch tomorrow. |
maropu
commented
Feb 9, 2016
@zjffdu ping |
maropu
commented
Feb 18, 2016
@zjffdu If you have no time to take this, is it okay I rework? |
maropu
commented
Feb 29, 2016
This is resolved by #11384, so could you close this? |
…tion when saving