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

Hot problem!
This exception has a lot of traffic. You can help 15 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by hiltonmbr
, 1 year ago
Reference 'var' is ambiguous, could be: var#166, var#167.;
via GitHub by kevinushey
, 1 year ago
Reference 'var' is ambiguous, could be: var#6, var#7.;
via Stack Overflow by freedev
, 7 months ago
Reference '11E' is ambiguous, could be: 11E#20457, 11E#20458.;
via Stack Overflow by Bamqf
, 1 year ago
Reference 'Email' is ambiguous, could be: Email#350, Email#361.;
via Stack Overflow by Zambezi
, 1 week ago
Reference 'count' is ambiguous, could be: count#6619, count#6629.;
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(LogicalPlan.scala:264)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolveQuoted(LogicalPlan.scala:168)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan$$anonfun$resolve$1.apply(LogicalPlan.scala:130)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at org.apache.spark.sql.types.StructType.foreach(StructType.scala:94)

Users with the same issue

Once, 5 months ago
Once, 2 months ago
3 times, 5 months ago
2 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.