We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da5c1ec commit be2c224Copy full SHA for be2c224
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala
@@ -819,8 +819,10 @@ object JdbcUtils extends Logging {
819
if (null != customSchema && customSchema.nonEmpty) {
820
val userSchema = CatalystSqlParser.parseTableSchema(customSchema)
821
822
- SchemaUtils.checkColumnNameDuplication(
823
- userSchema.map(_.name), "in the customSchema option value", nameEquality)
+ SchemaUtils.checkSchemaColumnNameDuplication(
+ userSchema,
824
+ "in the customSchema option value",
825
+ nameEquality)
826
827
// This is resolved by names, use the custom filed dataType to replace the default dataType.
828
val newSchema = tableSchema.map { col =>
0 commit comments