org.apache.spark.sql.AnalysisException: Reference 'var' is ambiguous, could be: var#166, var#167.;

GitHub | hiltonmbr | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 111#233146888

    GitHub | 9 months ago | hiltonmbr
    org.apache.spark.sql.AnalysisException: Reference 'var' is ambiguous, could be: var#166, var#167.;
  2. 0

    GitHub comment 111#233147755

    GitHub | 9 months ago | kevinushey
    org.apache.spark.sql.AnalysisException: Reference 'var' is ambiguous, could be: var#6, var#7.;
  3. 0

    Reference is ambiguous with SparkSQL CSV

    Stack Overflow | 3 months ago | user1004816
    org.apache.spark.sql.AnalysisException: Reference 'col6' is ambiguous, could be: col6#0, col6#5.;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.spark.sql.AnalysisException

      Reference 'var' is ambiguous, could be: var#166, var#167.;

      at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolve()
    2. Spark Project Catalyst
      LogicalPlan$$anonfun$resolve$1.apply
      1. org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolve(LogicalPlan.scala:264)
      2. org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolveQuoted(LogicalPlan.scala:168)
      3. org.apache.spark.sql.catalyst.plans.logical.LogicalPlan$$anonfun$resolve$1.apply(LogicalPlan.scala:130)
      4. org.apache.spark.sql.catalyst.plans.logical.LogicalPlan$$anonfun$resolve$1.apply(LogicalPlan.scala:129)
      4 frames
    3. Scala
      IterableLike$class.foreach
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      5 frames
    4. org.apache.spark
      StructType.foreach
      1. org.apache.spark.sql.types.StructType.foreach(StructType.scala:94)
      1 frame