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_r304089955
##########
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 resolver = sparkSession.sessionState.conf.resolver
partition.get.keys.foreach { colName =>
- if (!targetTable.partitionColumnNames.contains(colName)) {
+ if (!targetTable
+ .partitionColumnNames.exists(fieldName => resolver(fieldName,
colName))) {
Review comment:
Please see https://github.com/apache/spark/pull/24903#discussion_r303724838
.
We need to change more~
----------------------------------------------------------------
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]