You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jungtaek Lim (JIRA)" <ji...@apache.org> on 2019/07/17 02:42:00 UTC
[jira] [Reopened] (SPARK-26594) DataSourceOptions.asMap should
return CaseInsensitiveMap
[ https://issues.apache.org/jira/browse/SPARK-26594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jungtaek Lim reopened SPARK-26594:
----------------------------------
> 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: 3.0.0
> Reporter: Shixiong Zhu
> Priority: Major
>
> 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.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org