Turning on predicate pushdown for ORC datasources results in a NoSuchElementException:
scala> val df = sqlContext.sql("SELECT name FROM people WHERE age < 15") df: org.apache.spark.sql.DataFrame = [name: string] scala> sqlContext.setConf("spark.sql.orc.filterPushdown", "*true*") scala> df.explain == Physical Plan == *java.util.NoSuchElementException* Disabling the pushdown makes things work again: scala> sqlContext.setConf("spark.sql.orc.filterPushdown", "*false*") scala> df.explain == Physical Plan == Project [name#6] Filter (age#7 < 15) Scan OrcRelation[file:/home/mydir/spark-1.5.0-SNAPSHOT/test/people][name#6,age#7] Have any of you run into this problem before? Is a fix available? Thanks, Ravi