You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Saikrishna Pujari (Jira)" <ji...@apache.org> on 2022/01/24 22:53:00 UTC

[jira] [Created] (SPARK-38004) read_excel's parameter - mangle_dupe_cols is used to handle duplicate columns but fails if the duplicate columns are case sensitive.

Saikrishna Pujari created SPARK-38004:
-----------------------------------------

             Summary: read_excel's parameter - mangle_dupe_cols is used to handle duplicate columns but fails if the duplicate columns are case sensitive.
                 Key: SPARK-38004
                 URL: https://issues.apache.org/jira/browse/SPARK-38004
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 3.1.2
            Reporter: Saikrishna Pujari


mangle_dupe_cols - default is True
So ideally it should have handled duplicate columns, but in case the columns are case sensitive it fails as below.

AnalysisException: Reference '{{{}Sheet.col1{}}}' is ambiguous, could be Sheet.col1, Sheet.col1.

Where two columns are Col1 and cOl1

In the best practices, there is a mention of not to use case sensitive columns - [https://koalas.readthedocs.io/en/latest/user_guide/best_practices.html#do-not-use-duplicated-column-names]

Either the docs for read_excel/mangle_dupe_cols have to be updated about this or it has to be handled.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org