spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-4068) NPE in jsonRDD schema inference
Date Fri, 24 Oct 2014 00:37:33 GMT

    [ https://issues.apache.org/jira/browse/SPARK-4068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182251#comment-14182251
] 

Apache Spark commented on SPARK-4068:
-------------------------------------

User 'yhuai' has created a pull request for this issue:
https://github.com/apache/spark/pull/2918

> NPE in jsonRDD schema inference
> -------------------------------
>
>                 Key: SPARK-4068
>                 URL: https://issues.apache.org/jira/browse/SPARK-4068
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.1.0
>            Reporter: Michael Armbrust
>            Assignee: Yin Huai
>            Priority: Critical
>
> {code}
> val jsonData = """{"data":[[null], [[["Test"]]]]}""" :: """{"other": ""}""" :: Nil
> sqlContext.jsonRDD(sc.parallelize(jsonData))
> {code}
> {code}
> org.apache.spark.SparkException: Job aborted due to stage failure: Task 13 in stage 5.0
failed 4 times, most recent failure: Lost task 13.3 in stage 5.0 (TID 347, ip-10-0-234-152.us-west-2.compute.internal):
java.lang.NullPointerException: 
>         org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$allKeysWithValueTypes$1.org$apache$spark$sql$json$JsonRDD$$anonfun$$buildKeyPathForInnerStructs$1(JsonRDD.scala:252)
>         org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$allKeysWithValueTypes$1$$anonfun$org$apache$spark$sql$json$JsonRDD$$anonfun$$buildKeyPathForInnerStructs$1$3.apply(JsonRDD.scala:253)
>         org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$allKeysWithValueTypes$1$$anonfun$org$apache$spark$sql$json$JsonRDD$$anonfun$$buildKeyPathForInnerStructs$1$3.apply(JsonRDD.scala:253)
>         scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
>         scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
>         scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
>         scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
>         scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
>         scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message