Michael Armbrust created SPARK-3536: ---------------------------------------
Summary: SELECT on empty parquet table throws exception Key: SPARK-3536 URL: https://issues.apache.org/jira/browse/SPARK-3536 Project: Spark Issue Type: Bug Components: SQL Reporter: Michael Armbrust Reported by [~matei]. Reproduce as follows: {code} scala> case class Data(i: Int) defined class Data scala> createParquetFile[Data]("testParquet") scala> parquetFile("testParquet").count() 14/09/15 14:34:17 WARN scheduler.DAGScheduler: Creating new stage failed due to exception - job: 0 java.lang.NullPointerException at org.apache.spark.sql.parquet.FilteringParquetRowInputFormat.getSplits(ParquetTableOperations.scala:438) at parquet.hadoop.ParquetInputFormat.getSplits(ParquetInputFormat.java:344) at org.apache.spark.rdd.NewHadoopRDD.getPartitions(NewHadoopRDD.scala:95) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:204) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:202) {code} -- 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