Github user clockfly commented on a diff in the pull request: https://github.com/apache/spark/pull/14750#discussion_r78659438 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala --- @@ -373,7 +373,7 @@ case class InsertIntoTable( // Note: The parser (visitPartitionSpec in AstBuilder) already turns // keys in partition to their lowercase forms. val staticPartCols = partition.filter(_._2.isDefined).keySet - Some(table.output.filterNot(a => staticPartCols.contains(a.name))) + Some(table.output.filterNot(a => staticPartCols.contains(a.name.toLowerCase))) --- End diff -- visitPartitionSpec is used by ``` ShowPartitionsCommand LoadDataCommand TruncateTableCommand AlterTableAddPartitionCommand AlterTableRenamePartitionCommand AlterTableDropPartitionCommand AlterTableSetLocationCommand ``` I peeked several class above, seems the case sensitivity is not handled well.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org