Shixiong Zhu created SPARK-26594:
------------------------------------
Summary: DataSourceOptions.asMap should return CaseInsensitiveMap
Key: SPARK-26594
URL: https://issues.apache.org/jira/browse/SPARK-26594
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 2.4.0
Reporter: Shixiong Zhu
I'm pretty surprised that the following codes will fail.
{code}
import scala.collection.JavaConverters._
import org.apache.spark.sql.sources.v2.DataSourceOptions
val map = new DataSourceOptions(Map("fooBar" -> "x").asJava).asMap
assert(map.get("fooBar") == "x")
{code}
It's better to make DataSourceOptions.asMap return CaseInsensitiveMap.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]