dongjoon-hyun commented on a change in pull request #29160:
URL: https://github.com/apache/spark/pull/29160#discussion_r457747220
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala
##########
@@ -211,6 +211,7 @@ class DataFrameReader private[sql](sparkSession:
SparkSession) extends Logging {
*/
def load(path: String): DataFrame = {
// force invocation of `load(...varargs...)`
+ removeExtraOptionsByKey("path")
Review comment:
Before going to the new PR, the following is the result on
`LinkedHashMap`. `LinkedHashMap` doesn't solve the problem.
```scala
val extraOptions = new scala.collection.mutable.LinkedHashMap[String, String]
extraOptions += ("paTh" -> "1")
extraOptions += ("PATH" -> "2")
extraOptions += ("Path" -> "3")
extraOptions += ("patH" -> "4")
extraOptions += ("path" -> "5")
extraOptions.toMap
// Exiting paste mode, now interpreting.
extraOptions: scala.collection.mutable.LinkedHashMap[String,String] =
Map(paTh -> 1, PATH -> 2, Path -> 3, patH -> 4, path -> 5)
res0: scala.collection.immutable.Map[String,String] = Map(PATH -> 2, path ->
5, patH -> 4, Path -> 3, paTh -> 1)
```
----------------------------------------------------------------
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]