tenglei opened a new pull request #34556: URL: https://github.com/apache/spark/pull/34556
[SPARK-37289][SQL][Refactoring] remove the unnecessary function called partitionSchemaOption ### 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 to handle this situation. ### Does this PR introduce _any_ user-facing change? No,only change the expression. ### How was this patch tested? Pass existed tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
