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

Exception when querying when tableName == columnName

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      [info]   java.util.NoSuchElementException: next on empty iterator
      [info]   at scala.collection.Iterator$$anon$2.next(Iterator.scala:39)
      [info]   at scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
      [info]   at scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:64)
      [info]   at scala.collection.IterableLike$class.head(IterableLike.scala:91)
      [info]   at scala.collection.mutable.ArrayOps$ofRef.scala$collection$IndexedSeqOptimized$$super$head(ArrayOps.scala:108)
      [info]   at scala.collection.IndexedSeqOptimized$class.head(IndexedSeqOptimized.scala:120)
      [info]   at scala.collection.mutable.ArrayOps$ofRef.head(ArrayOps.scala:108)
      [info]   at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan$$anonfun$2.apply(LogicalPlan.scala:68)
      [info]   at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan$$anonfun$2.apply(LogicalPlan.scala:65)
      [info]   at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
      [info]   at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
      [info]   at scala.collection.immutable.List.foreach(List.scala:318)
      [info]   at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
      [info]   at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
      [info]   at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolve(LogicalPlan.scala:65)
      [info]   at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveReferences$$anonfun$apply$3$$anonfun$applyOrElse$2.applyOrElse(Analyzer.scala:100)
      [info]   at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveReferences$$anonfun$apply$3$$anonfun$applyOrElse$2.applyOrElse(Analyzer.scala:97)
      [info]   at org.apache.spark.sql.catalyst.trees.TreeNode.transformDown(TreeNode.scala:165)
      [info]   at org.apache.spark.sql.catalyst.plans.QueryPlan.org$apache$spark$sql$catalyst$plans$QueryPlan$$transformExpressionDown$1(QueryPlan.scala:51)
      [info]   at org.apache.spark.sql.catalyst.plans.QueryPlan$$anonfun$1$$anonfun$apply$1.apply(QueryPlan.scala:65)
      [info]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      [info]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      

        Attachments

          Activity

            People

            • Assignee:
              marmbrus Michael Armbrust
              Reporter:
              marmbrus Michael Armbrust
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: