You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/07/21 00:46:00 UTC

[jira] [Assigned] (SPARK-32377) CaseInsensitiveMap should be deterministic for addition

     [ https://issues.apache.org/jira/browse/SPARK-32377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-32377:
------------------------------------

    Assignee:     (was: Apache Spark)

> CaseInsensitiveMap should be deterministic for addition
> -------------------------------------------------------
>
>                 Key: SPARK-32377
>                 URL: https://issues.apache.org/jira/browse/SPARK-32377
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.6, 3.0.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>
> {code}
>   test("CaseInsensitiveMap should be deterministic") {
>     var m = CaseInsensitiveMap(Map.empty[String, String])
>     Seq(("paTh", "1"), ("PATH", "2"), ("Path", "3"), ("patH", "4"), ("path", "5")).foreach { kv =>
>       m = (m + kv).asInstanceOf[CaseInsensitiveMap[String]]
>       assert(m.get("path") == Some(kv._2))
>     }
>   }
> {code}



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

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