You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2022/02/17 21:12:00 UTC

[jira] [Resolved] (SPARK-38182) Fix NoSuchElementException if pushed filter does not contain any references

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

Dongjoon Hyun resolved SPARK-38182.
-----------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 35487
[https://github.com/apache/spark/pull/35487]

> Fix NoSuchElementException if pushed filter does not contain any references
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-38182
>                 URL: https://issues.apache.org/jira/browse/SPARK-38182
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: XiDuo You
>            Priority: Major
>             Fix For: 3.3.0
>
>
> reproduce:
> {code:java}
> CREATE TABLE t (c1 int) USING PARQUET;
> SET spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.BooleanSimplification;
> SELECT * FROM t WHERE c1 = 1 AND 2 > 1;
> {code}
> and the error msg:
> {code:java}
> java.util.NoSuchElementException: next on empty iterator
> 	at scala.collection.Iterator$$anon$2.next(Iterator.scala:41)
> 	at scala.collection.Iterator$$anon$2.next(Iterator.scala:39)
> 	at scala.collection.mutable.LinkedHashSet$$anon$1.next(LinkedHashSet.scala:89)
> 	at scala.collection.IterableLike.head(IterableLike.scala:109)
> 	at scala.collection.IterableLike.head$(IterableLike.scala:108)
> 	at org.apache.spark.sql.catalyst.expressions.AttributeSet.head(AttributeSet.scala:69)
> 	at org.apache.spark.sql.execution.datasources.PartitioningAwareFileIndex.$anonfun$listFiles$3(PartitioningAwareFileIndex.scala:85)
> 	at scala.Option.map(Option.scala:230)
> 	at org.apache.spark.sql.execution.datasources.PartitioningAwareFileIndex.listFiles(PartitioningAwareFileIndex.scala:84)
> 	at org.apache.spark.sql.execution.FileSourceScanExec.selectedPartitions$lzycompute(DataSourceScanExec.scala:249)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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