dongjoon-hyun commented on a change in pull request #29172:
URL: https://github.com/apache/spark/pull/29172#discussion_r457834857
##########
File path:
sql/catalyst/src/main/scala-2.13/org/apache/spark/sql/catalyst/util/CaseInsensitiveMap.scala
##########
@@ -40,7 +40,7 @@ class CaseInsensitiveMap[T] private (val originalMap:
Map[String, T]) extends Ma
keyLowerCasedMap.contains(k.toLowerCase(Locale.ROOT))
override def updated[B1 >: T](key: String, value: B1): Map[String, B1] = {
- new CaseInsensitiveMap[B1](originalMap + (key -> value))
+ new CaseInsensitiveMap[B1](originalMap.filter(!_._1.equalsIgnoreCase(key))
+ (key -> value))
Review comment:
This one is also reusing the logic at `removed` at line 49. I also
verified that Scala-2.13 compilation.
For now, Scala-2.13 testing is not possible.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]