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

    https://github.com/apache/spark/pull/3708#discussion_r21935456
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala 
---
    @@ -263,6 +263,8 @@ private[sql] object JsonRDD extends Logging {
             val elementType = typeOfArray(array)
             buildKeyPathForInnerStructs(array, elementType) :+ (key, 
elementType)
           }
    +      // we couldn't tell what the type is if the value is null or empty 
string
    +      case (key: String, value) if value == "" || value == null => (key, 
NullType) :: Nil
    --- End diff --
    
    The null case makes sense to me, but why `""` as well?  That seems to be 
unequivocally a `String`


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to