Skip to content

Conversation

@jiangxb1987
Copy link
Contributor

What changes were proposed in this pull request?

This PR fixes a minor issue in HadoopFsRelationTest, that you should create table using dataSourceName instead of parquet. The issue won't affect the correctness, but it will generate wrong error message in case the test fails.

How was this patch tested?

Exsiting tests.

sql(s"CREATE TABLE t(i INT) USING $dataSourceName")
intercept[AnalysisException] {
testDF.write.format(dataSourceName).mode(SaveMode.ErrorIfExists).saveAsTable("t")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an error message check logic here explicitly?

@SparkQA
Copy link

SparkQA commented Mar 9, 2018

Test build #88112 has finished for PR 20780 at commit 29fd5a8.

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

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except the comment above

@SparkQA
Copy link

SparkQA commented Mar 13, 2018

Test build #88203 has finished for PR 20780 at commit d35a685.

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

@HyukjinKwon
Copy link
Member

Merged to master.

@asfgit asfgit closed this in 9ddd1e2 Mar 13, 2018
mstewart141 pushed a commit to mstewart141/spark that referenced this pull request Mar 24, 2018
…lationTest`

## What changes were proposed in this pull request?

This PR fixes a minor issue in `HadoopFsRelationTest`, that you should create table using `dataSourceName` instead of `parquet`. The issue won't affect the correctness, but it will generate wrong error message in case the test fails.

## How was this patch tested?

Exsiting tests.

Author: Xingbo Jiang <[email protected]>

Closes apache#20780 from jiangxb1987/dataSourceName.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants