You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/09/15 00:29:00 UTC

[jira] [Resolved] (SPARK-32871) Append toMap to Map#filterKeys if the result of filter is concatenated with another Map for Scala 2.13

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

Hyukjin Kwon resolved SPARK-32871.
----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 29742
[https://github.com/apache/spark/pull/29742]

> Append toMap to Map#filterKeys if the result of filter is concatenated with another Map for Scala 2.13
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-32871
>                 URL: https://issues.apache.org/jira/browse/SPARK-32871
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Build
>    Affects Versions: 3.1.0
>            Reporter: Kousuke Saruta
>            Assignee: Kousuke Saruta
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> As of Scala 2.13, Map#filterKeys return a MapView, not the original Map type.
> This can cause compile error.
> {code:java}
> /sql/DataFrameReader.scala:279: type mismatch;
> [error]  found   : Iterable[(String, String)]
> [error]  required: java.util.Map[String,String]
> [error] Error occurred in an application involving default arguments.
> [error]       val dsOptions = new CaseInsensitiveStringMap(finalOptions.asJava) {code}



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

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