spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheng Lian (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-10623) NoSuchElementException thrown when ORC predicate push-down is turned on
Date Thu, 17 Sep 2015 18:41:04 GMT

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

Cheng Lian updated SPARK-10623:
-------------------------------
    Summary: NoSuchElementException thrown when ORC predicate push-down is turned on  (was:
turning on predicate pushdown throws nonsuch element exception when RDD is empty )

> NoSuchElementException thrown when ORC predicate push-down is turned on
> -----------------------------------------------------------------------
>
>                 Key: SPARK-10623
>                 URL: https://issues.apache.org/jira/browse/SPARK-10623
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Ram Sriharsha
>            Assignee: Zhan Zhang
>
> 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]



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

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


Mime
View raw message