Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

backport #28948

This is a followup of #28760 to fix the remaining issues:

  1. should consider data source options when refreshing cache by path at the end of InsertIntoHadoopFsRelationCommand
  2. should consider data source options when inferring schema for file source
  3. should consider data source options when getting the qualified path in file source v2.

Why are the changes needed?

We didn't catch these issues in #28760, because the test case is to check error when initializing the file system. If we initialize the file system multiple times during a simple read/write action, the test case actually only test the first time.

Does this PR introduce any user-facing change?

No

How was this patch tested?

rewrite the test to make sure the entire data source read/write action can succeed.

…ctive in data source options

This is a followup of apache#28760 to fix the remaining issues:
1. should consider data source options when refreshing cache by path at the end of `InsertIntoHadoopFsRelationCommand`
2. should consider data source options when inferring schema for file source
3. should consider data source options when getting the qualified path in file source v2.

We didn't catch these issues in apache#28760, because the test case is to check error when initializing the file system. If we initialize the file system multiple times during a simple read/write action, the test case actually only test the first time.

No

rewrite the test to make sure the entire data source read/write action can succeed.

Closes apache#28948 from cloud-fan/fix.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
(cherry picked from commit 6edb20d)
Signed-off-by: Gengliang Wang <[email protected]>
@cloud-fan
Copy link
Contributor Author

cc @gengliangwang @dongjoon-hyun

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124860 has finished for PR 28973 at commit 1fe95be.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124872 has finished for PR 28973 at commit 1fe95be.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to branch-2.4.

HyukjinKwon pushed a commit that referenced this pull request Jul 2, 2020
… effective in data source options

### What changes were proposed in this pull request?

backport #28948

This is a followup of #28760 to fix the remaining issues:
1. should consider data source options when refreshing cache by path at the end of `InsertIntoHadoopFsRelationCommand`
2. should consider data source options when inferring schema for file source
3. should consider data source options when getting the qualified path in file source v2.

### Why are the changes needed?

We didn't catch these issues in #28760, because the test case is to check error when initializing the file system. If we initialize the file system multiple times during a simple read/write action, the test case actually only test the first time.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

rewrite the test to make sure the entire data source read/write action can succeed.

Closes #28973 from cloud-fan/pick.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
@HyukjinKwon HyukjinKwon closed this Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants