title: PySpark and broadcast join example
body: <p>I am using Spark 1.3 </p>
  
  <pre><code># Read from text file, parse it and then do some basic filtering to get   data1
  data1.registerTempTable('data1')
  
  # Read from text file, parse it and then do some basic filtering to get data1
  data2.registerTempTable('data2')
  
  # Perform join
  data_joined = data1.join(data2, data1.id == data2.id);
  </code></pre>
  
  <p>My data is quite skewed and data2 (few KB) &lt;&lt; data1 (10s of GB) and the performance is quite bad. I was reading about broadcast join, but not sure how I can do the same using Python API.</p>