rdblue commented on a change in pull request #25305: [SPARK-28572][SQL] Simple
analyzer checks for CREATE TABLE v2
URL: https://github.com/apache/spark/pull/25305#discussion_r309823102
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
##########
@@ -245,6 +246,55 @@ case class DataSourceResolution(
catalog: TableCatalog,
identifier: Identifier,
create: CreateTableStatement): CreateV2Table = {
+
+ val isCaseSensitive = conf.caseSensitiveAnalysis
Review comment:
Spark's case sensitivity is what matters here because we can't rely on the
catalog to do anything differently. If Spark considers two column names to be
identical, then Spark should reject them.
----------------------------------------------------------------
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]