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

Michael Armbrust resolved SPARK-4676.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Issue resolved by pull request 3538
[https://github.com/apache/spark/pull/3538]

> JavaSchemaRDD.schema may throw NullType MatchError if sql has null
> ------------------------------------------------------------------
>
>                 Key: SPARK-4676
>                 URL: https://issues.apache.org/jira/browse/SPARK-4676
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: YanTang Zhai
>             Fix For: 1.2.0
>
>
> val jsc = new org.apache.spark.api.java.JavaSparkContext(sc)
> val jhc = new org.apache.spark.sql.hive.api.java.JavaHiveContext(jsc)
> val nrdd = jhc.hql("select null from spark_test.for_test")
> println(nrdd.schema)
> Then the error is thrown as follows:
> scala.MatchError: NullType (of class 
> org.apache.spark.sql.catalyst.types.NullType$)
> at 
> org.apache.spark.sql.types.util.DataTypeConversions$.asJavaDataType(DataTypeConversions.scala:43)



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

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

Reply via email to