Maxim Gekk created SPARK-32510:
----------------------------------

             Summary: JDBC doesn't check duplicate column names in nested 
structures 
                 Key: SPARK-32510
                 URL: https://issues.apache.org/jira/browse/SPARK-32510
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.1.0
            Reporter: Maxim Gekk


JdbcUtils.getCustomSchema calls checkColumnNameDuplication() which checks 
duplicates on top-level but not in nested structures as other built-in 
datasources do, see

[https://github.com/apache/spark/blob/8bc799f92005c903868ef209f5aec8deb6ccce5a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala#L822-L823]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to