imback82 commented on a change in pull request #33676:
URL: https://github.com/apache/spark/pull/33676#discussion_r685327625
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/connector/V2CommandsCaseSensitivitySuite.scala
##########
@@ -316,17 +316,34 @@ class V2CommandsCaseSensitivitySuite extends
SharedSparkSession with AnalysisTes
}
}
+ test("SPARK-36449: Replacing columns with duplicate name should not be
allowed") {
+ alterTableTest(
+ () => ReplaceColumns(
+ table,
+ Seq(QualifiedColType(None, "f", LongType, true, None, None),
+ QualifiedColType(None, "F", LongType, true, None, None))),
+ Seq("Found duplicate column(s) in the user specified columns: `f`"),
+ expectErrorOnCaseSensitive = false)
+ }
+
private def alterTableTest(
alter: AlterTableCommand,
Review comment:
thanks, updated.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]