Uh oh!
There was an error while loading. Please reload this page.
[SPARK-27085][SQL] Migrate CSV to File Data Source V2 - #24005
[SPARK-27085][SQL] Migrate CSV to File Data Source V2#24005gengliangwang wants to merge 8 commits into
Conversation
gengliangwang
commented
Mar 7, 2019
This PR is marked as WIP, since it contains 46e4603e6c6ac90aa49a127f6dece0c8a4fa4df0 to test the write path. The temporary commit will be reverted after all tests passed. |
SparkQA
commented
Mar 7, 2019
Test build #103136 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 7, 2019
Test build #103148 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 7, 2019
Test build #103149 has finished for PR 24005 at commit
|
gatorsmile
commented
Mar 8, 2019
cc @HyukjinKwon@dongjoon-hyun Are you interested in the code review for this PR? |
dongjoon-hyun
commented
Mar 8, 2019
Sure, @gatorsmile . I'll try to take a look more tonight. |
HyukjinKwon
commented
Mar 8, 2019
Thanks for cc'ing me. To me, will take a look tomorrow. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dongjoon-hyun
commented
Mar 8, 2019
Hi, @gatorsmile , @gengliangwang . I finished my first-round review. I'll do the second round after this is rebased after merging @cloud-fan 's #24025 . |
Uh oh!
There was an error while loading. Please reload this page.
HyukjinKwon
commented
Mar 9, 2019
BTW, @gengliangwang, some CSV code path like schema inference is dependent on Text datasource. So, I always think Text datasource should better be fixed first before fixing CSV and JSON if there's something to be fixed across them (for instance, Since CSV work is already done here first, I am fine but I was thinking the next job should better be Text datasource migration. |
Uh oh!
There was an error while loading. Please reload this page.
gengliangwang
commented
Mar 11, 2019
@dongjoon-hyun@HyukjinKwon Thanks for the review! @HyukjinKwon actually I have prepared JSON V2 and it is almost ready. Your suggestion makes sense. I will migrate the Text data source first. |
HyukjinKwon
commented
Mar 11, 2019
If there's some work already done for JSON, I am okay too. I don't expect there'd be too much difficulties even if we do the Text one later. I'll leave it to you. |
SparkQA
commented
Mar 11, 2019
Test build #103315 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 11, 2019
Test build #103331 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 11, 2019
Test build #103329 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 11, 2019
Test build #103337 has finished for PR 24005 at commit
|
a408d15 to
8db6873CompareSparkQA
commented
Mar 15, 2019
Test build #103540 has finished for PR 24005 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dongjoon-hyun
commented
Mar 22, 2019
I finished the second round. I'll review later again after the PR is updated. |
SparkQA
commented
Mar 22, 2019
Test build #103813 has finished for PR 24005 at commit
|
SparkQA
commented
Mar 22, 2019
Test build #103814 has finished for PR 24005 at commit
|
gengliangwang
commented
Mar 24, 2019
@dongjoon-hyun@HyukjinKwon Thanks for the review! |
| userSpecifiedSchema: Option[StructType]) | ||
| extends FileTable(sparkSession, options, paths, userSpecifiedSchema) { | ||
| override def newScanBuilder(options: CaseInsensitiveStringMap): CSVScanBuilder = | ||
| CSVScanBuilder(sparkSession, fileIndex, schema, dataSchema, options) |
There was a problem hiding this comment.
Hi @gengliangwang. Should we use this.options here instead of the passed-in options?
For the TableCatalog, the dsOptions can be set into the CSVTable.options returned by the TableCatalog.loadTable method. If the passed-in options are used here, the TableCatalog will not be able to pass dsOptions that contains CSV options to CSVScan.
There was a problem hiding this comment.
shall we combine them?
@cloud-fan Yes, it would be better to combine them. Can I submit a PR to make changes here?
What changes were proposed in this pull request?
Migrate CSV to File Data Source V2.
How was this patch tested?
Unit test