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

GitHub | kevinushey | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 111#233147755

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

    GitHub comment 111#233146888

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

    Reference is ambiguous with SparkSQL CSV

    Stack Overflow | 4 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#6, var#7.;

      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