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

Exception when querying when tableName == columnName

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 1.1.0
    • SQL
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment