title: Spark: Exception in thread "main" org.apache.spark.sql.catalyst.errors.package
body: <p>While running my spark-submit code, I get this error when I execute.</p>
  
  <p>Scala file which performs joins.</p>
  
  <p>I am just curious to know what is this TreeNodeException error. </p>
  
  <p>Why do we have this error?</p>
  
  <p>Please share your ideas on this TreeNodeException error:</p>
  
  <pre><code>Exception in thread “main” org.apache.spark.sql.catalyst.errors.package$TreeNodeException: execute, tree:
  </code></pre>