title: How to implement "Cross Join" in Spark?
body: <p>We plan to move Apache Pig code to the new Spark platform.</p>
  
  <p>Pig has a "Bag/Tuple/Field" concept and behaves similarly to a relational database. Pig provides support for CROSS/INNER/OUTER joins.</p>
  
  <p>For CROSS JOIN, we can use <a href="http://pig.apache.org/docs/r0.12.1/basic.html#cross" rel="noreferrer">alias = CROSS alias, alias [, alias …] [PARTITION BY partitioner] [PARALLEL n];</a></p>
  
  <p>But as we move to the Spark platform I couldn't find any counterpart in the Spark API. Do you have any idea?</p>