You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2014/08/08 20:11:12 UTC

[jira] [Resolved] (SPARK-2908) JsonRDD.nullTypeToStringType does not convert all NullType to StringType

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

Michael Armbrust resolved SPARK-2908.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.0

> JsonRDD.nullTypeToStringType does not convert all NullType to StringType
> ------------------------------------------------------------------------
>
>                 Key: SPARK-2908
>                 URL: https://issues.apache.org/jira/browse/SPARK-2908
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>            Assignee: Yin Huai
>             Fix For: 1.1.0
>
>
> Failed on
> {code}
> val schemaRDD = jsonRDD(sparkContext.parallelize(Seq("""{"record": [{"children": null}]}""")))
> {code}
> {code}
> schemaRDD.schema
> StructType(ArrayBuffer(StructField(record,ArrayType(StructType(ArrayBuffer(StructField(children,NullType,true))),false),true)))
> {code}
> You can see the children field is still NullType.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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