Uh oh!
There was an error while loading. Please reload this page.
[SPARK-14596][SQL] Remove not used SqlNewHadoopRDD and some more unused imports - #12354
[SPARK-14596][SQL] Remove not used SqlNewHadoopRDD and some more unused imports#12354HyukjinKwon wants to merge 5 commits into
Conversation
SparkQA
commented
Apr 13, 2016
Test build #55707 has finished for PR 12354 at commit
|
HyukjinKwon
commented
Apr 13, 2016
cc @cloud-fan |
cloud-fan
commented
Apr 13, 2016
There is a |
HyukjinKwon
commented
Apr 13, 2016
Thanks! I just renamed. |
SparkQA
commented
Apr 13, 2016
Test build #55708 has finished for PR 12354 at commit
|
SparkQA
commented
Apr 13, 2016
Test build #55709 has finished for PR 12354 at commit
|
| split.inputSplit.value match { | ||
| case fs: FileSplit => SqlNewHadoopRDDState.setInputFileName(fs.getPath.toString) | ||
| case _ => SqlNewHadoopRDDState.unsetInputFileName() | ||
| case fs: FileSplit => FileScanRDDState.setInputFileName(fs.getPath.toString) |
There was a problem hiding this comment.
@liancheng@yhuai Do you still use HadoopRDD to read data source relation? If not, I think we don't need to update file name here anymore.
There was a problem hiding this comment.
I think it is used by HiveTableScan
There was a problem hiding this comment.
@cloud-fan I see. This is used in https://github.com/apache/spark/blob/d6dc12ef0146ae409834c78737c116050961f350/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/InputFileName.scala during code generation.
Should I remove the change of file name?
There was a problem hiding this comment.
i see, how about renaming it to InputFileNameHolder?
| * TODO: Move/Combine this with org.apache.spark.sql.datasources.SqlNewHadoopRDD | ||
| * State for FileScanRDD objects. This is split this way because of the package splits. | ||
| */ | ||
| private[spark] object SqlNewHadoopRDDState { |
There was a problem hiding this comment.
SqlNewHadoopRDDState is definitely not a good name here, how about InputFileNameHolder?
HyukjinKwon
commented
Apr 14, 2016
@cloud-fan The commits I just submitted include the changes for MiMa tests and some comments. |
SparkQA
commented
Apr 14, 2016
Test build #55772 has finished for PR 12354 at commit
|
SparkQA
commented
Apr 14, 2016
Test build #55769 has finished for PR 12354 at commit
|
HyukjinKwon
commented
Apr 14, 2016
retest this please |
SparkQA
commented
Apr 14, 2016
Test build #55784 has finished for PR 12354 at commit
|
cloud-fan
commented
Apr 14, 2016
thanks! merging to master! |
What changes were proposed in this pull request?
Old
HadoopFsRelationAPI includesbuildInternalScan()which usesSqlNewHadoopRDDinParquetRelation.Because now the old API is removed,
SqlNewHadoopRDDis not used anymore.So, this PR removes
SqlNewHadoopRDDand several unused imports.This was discussed in #12326.
How was this patch tested?
Several related existing unit tests and
sbt scalastyle.