Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-10623

NoSuchElementException thrown when ORC predicate push-down is turned on

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.5.0
    • 1.5.1, 1.6.0
    • SQL
    • None

    Description

      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]
      

      Attachments

        Activity

          People

            zhazhan Zhan Zhang
            rams Ram Sriharsha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: