title: java.lang.ClassCastException: org.apache.spark.sql.Column cannot be cast to scala.collection.Seq
body: <p>I am performing something like this for using right join in the spark application in java.</p>
  
  <pre><code>Dataset&lt;Row&gt; dataset3 = dataset1.join(dataset2, 
         (Seq&lt;String&gt;) dataset1.col("target_guid"),RightOuter.sql());
  </code></pre>
  
  <p>But getting this error</p>
  
  <pre><code>java.lang.ClassCastException: org.apache.spark.sql.Column cannot be 
  cast to scala.collection.Seq
  </code></pre>
  
  <p>Other than this, I couldn't find the way to use joins in java for the datasets.
  Could anyone help me finding a way to do this?</p>