dongjoon-hyun commented on a change in pull request #24903: [SPARK-28084][SQL]
Resolving the partition column name based on the resolver in sql load command
URL: https://github.com/apache/spark/pull/24903#discussion_r295009055
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -296,8 +296,10 @@ case class LoadDataCommand(
s"do not match number of partitioned columns in table " +
s"(${targetTable.partitionColumnNames.size})")
}
+ val resolverFunc = resolver(sparkSession.sessionState.conf)
partition.get.keys.foreach { colName =>
- if (!targetTable.partitionColumnNames.contains(colName)) {
+ if (!targetTable.partitionColumnNames
+ .exists(fieldName => resolverFunc(fieldName, colName))) {
Review comment:
indentation.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]