Skip to content

Conversation

@maropu
Copy link
Member

@maropu maropu commented Apr 25, 2020

What changes were proposed in this pull request?

This PR intends to fix test code for using lowercases for the GLOBAL_TEMP_DATABASE config in SparkSessionBuilderSuite. The handling of the config is different between branch-3.0+ and branch-2.4. In branch-3.0+, Spark always lowercases a value in the config, so I think we had better always use lowercases for it in the test.

This comes from the @dongjoon-hyun
comment: #28316 (comment)

Why are the changes needed?

To fix the test failure in branch-2.4.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Fixed the test.

@maropu
Copy link
Member Author

maropu commented Apr 25, 2020

cc: @dongjoon-hyun @cloud-fan @yaooqinn

@dongjoon-hyun
Copy link
Member

Thank you, @maropu !

val session = SparkSession.builder()
.master("local")
.config(GLOBAL_TEMP_DATABASE.key, value = "globalTempDB-SPARK-31234")
.config(GLOBAL_TEMP_DATABASE.key, value = "globaltempdb-spark-31234")
Copy link
Member

@dongjoon-hyun dongjoon-hyun Apr 25, 2020

Choose a reason for hiding this comment

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

Now, I understand why you change the conf. This one is the safest test case change in branch-2.4.

Copy link
Member Author

@maropu maropu Apr 25, 2020

Choose a reason for hiding this comment

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

Need this one? Dropping this is okay to me though.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you for the swift fix.
I ran the test locally. I'll merge this to recover branch-2.4.

dongjoon-hyun pushed a commit that referenced this pull request Apr 25, 2020
…BAL_TEMP_DATABASE config in SparkSessionBuilderSuite

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

This PR intends to fix test code for using lowercases for the `GLOBAL_TEMP_DATABASE` config in `SparkSessionBuilderSuite`. The handling of the config is different between branch-3.0+ and branch-2.4. In branch-3.0+, Spark always lowercases a value in the config, so I think we had better always use lowercases for it in the test.

This comes from the dongjoon-hyun
 comment: #28316 (comment)

### Why are the changes needed?

To fix the test failure in branch-2.4.

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

No.

### How was this patch tested?

Fixed the test.

Closes #28339 from maropu/SPARK-31532.

Authored-by: Takeshi Yamamuro <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@maropu
Copy link
Member Author

maropu commented Apr 25, 2020

Thanks for the quick response, @dongjoon-hyun !

@SparkQA
Copy link

SparkQA commented Apr 25, 2020

Test build #121794 has finished for PR 28339 at commit 959c8a4.

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

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