Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25075 Build and test Spark against Scala 2.13
  3. SPARK-32871

Append toMap to Map#filterKeys if the result of filter is concatenated with another Map for Scala 2.13

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • Build
    • None

    Description

      As of Scala 2.13, Map#filterKeys return a MapView, not the original Map type.
      This can cause compile error.

      /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) 

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: