Github user liancheng commented on a diff in the pull request: https://github.com/apache/spark/pull/13756#discussion_r69540936 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala --- @@ -248,4 +281,15 @@ private[sql] case class PreWriteCheck(conf: SQLConf, catalog: SessionCatalog) case _ => // OK } } + + private def checkDuplicates(columnNames: Seq[String], columnType: String): Unit = { + val duplicateColumns = columnNames.groupBy { name => + if (conf.caseSensitiveAnalysis) name else name.toLowerCase }.collect { + case (x, ys) if ys.length > 1 => s"`$x`" + } --- End diff -- Code style within this block looks weird.
--- 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