Skip to content

Conversation

@tenglei
Copy link
Contributor

@tenglei tenglei commented Nov 13, 2021

What changes were proposed in this pull request?

This PR remove the unnecessary function called partitionSchemaOption in HadoopFsRelation.scala.

Why are the changes needed?

The partitionSchemaOption is unnecessary in HadoopFsRelation, it will make more complicated logical in HadoopFsRelation,which we can simply use partitionSchema.isEmpty or partitionSchema.nonEmpty instead

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass existed tests.

What changes were proposed in this pull request?
This PR remove the unnecessary function called partitionSchemaOption in HadoopFsRelation.scala.

Why are the changes needed?
The partitionSchemaOption is unnecessary in HadoopFsRelation, it will make more complicated logical in HadoopFsRelation,which we can simply use partitionSchema.isEmpty or partitionSchema.nonEmpty instead

Does this PR introduce any user-facing change?
No,only change the expression.

How was this patch tested?
Pass existed tests.
@github-actions github-actions bot added the SQL label Nov 13, 2021
@wzhfy
Copy link
Contributor

wzhfy commented Nov 13, 2021

jenkins, test this please

@wzhfy
Copy link
Contributor

wzhfy commented Nov 13, 2021

@tenglei please make the title more specific by pointing out the function name

@SparkQA
Copy link

SparkQA commented Nov 13, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49660/

@SparkQA
Copy link

SparkQA commented Nov 13, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49660/

@SparkQA
Copy link

SparkQA commented Nov 13, 2021

Test build #145191 has finished for PR 34582 at commit f96eb3a.

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

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.

This is not a removal of unnecessary functions technically.
Please be clear what you are doing.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@tenglei tenglei changed the title [SPARK-37289][SQL] Remove the unnecessary function [SPARK-37289][SQL] Remove the unnecessary partitionSchemaOption function Nov 14, 2021
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-37289][SQL] Remove the unnecessary partitionSchemaOption function [SPARK-37289][SQL] Remove partitionSchemaOption function Nov 14, 2021
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 updating, @tenglei .
Merged to master.

@dongjoon-hyun
Copy link
Member

@tenglei . I added you to the Apache Spark contributor group and assigned SPARK-37289 to you.
Welcome to the Apache Spark community.

@tenglei
Copy link
Contributor Author

tenglei commented Nov 15, 2021

@tenglei . I added you to the Apache Spark contributor group and assigned SPARK-37289 to you. Welcome to the Apache Spark community.

Thanks for the assist, appreciate your time. I'm very happy to join the Spark community~

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.

5 participants