[
https://issues.apache.org/jira/browse/SPARK-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229776#comment-14229776
]
Apache Spark commented on SPARK-4676:
-------------------------------------
User 'YanTangZhai' has created a pull request for this issue:
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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]