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

2020-07-21 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Reporter: Girish A Pandit  (was: Dongjoon Hyun)

> 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.1.3, 2.2.3, 2.3.4, 2.4.6, 3.0.0
>Reporter: Girish A Pandit
>Assignee: Dongjoon Hyun
>Priority: Major
> Fix For: 2.4.7, 3.0.1, 3.1.0
>
>
> {code}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-21 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Fix Version/s: 2.4.7

> 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.1.3, 2.2.3, 2.3.4, 2.4.6, 3.0.0
>Reporter: Dongjoon Hyun
>Assignee: Dongjoon Hyun
>Priority: Major
> Fix For: 2.4.7, 3.0.1, 3.1.0
>
>
> {code}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-20 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Affects Version/s: 2.1.3

> 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.1.3, 2.2.3, 2.3.4, 2.4.6, 3.0.0
>Reporter: Dongjoon Hyun
>Priority: Major
>
> {code}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-20 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Affects Version/s: 2.2.3

> 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.2.3, 2.3.4, 2.4.6, 3.0.0
>Reporter: Dongjoon Hyun
>Priority: Major
>
> {code}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-20 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Description: 
{code}
import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
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]]
  println(m.get("path"))
}

Some(1)
Some(2)
Some(3)
Some(4)
Some(1)
{code}

  was:
{code}
import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
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]]
  println(m.get("path"))
}

// Exiting paste mode, now interpreting.

Some(1)
Some(2)
Some(3)
Some(4)
Some(1)
{code}


> 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}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-20 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Affects Version/s: 2.3.4

> 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.3.4, 2.4.6, 3.0.0
>Reporter: Dongjoon Hyun
>Priority: Major
>
> {code}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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



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

2020-07-20 Thread Dongjoon Hyun (Jira)


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

Dongjoon Hyun updated SPARK-32377:
--
Description: 
{code}
import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
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]]
  println(m.get("path"))
}

// Exiting paste mode, now interpreting.

Some(1)
Some(2)
Some(3)
Some(4)
Some(1)
{code}

  was:
{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}


> 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}
> import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
> 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]]
>   println(m.get("path"))
> }
> // Exiting paste mode, now interpreting.
> Some(1)
> Some(2)
> Some(3)
> Some(4)
> Some(1)
> {code}



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

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