Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1598#discussion_r15717851
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala ---
    @@ -503,12 +504,9 @@ class SQLContext(@transient val sparkContext: 
SparkContext)
             }
             row
     
    -      case (c: java.util.Map[_, _], MapType(keyType, valueType, _)) =>
    -        val converted = c.map {
    -          case (key, value) =>
    -            (convert(key, keyType), convert(value, valueType))
    -        }
    -        JMapWrapper(converted)
    +      case (c: java.util.Map[_, _], MapType(keyType, valueType, _)) => 
c.map {
    +          case (key, value) => (convert(key, keyType), convert(value, 
valueType))
    +        }.toMap
    --- End diff --
    
    The Row() in python will be convert into tuple(), so It's fine to remove 
this case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to